Properties
Optional
capacity
capacity?: null | number
Optional
onCapacityExceeded
onCapacityExceeded?: ((key) => void | Promise<void>)
Type declaration
- (key): void | Promise<void>
Returns void | Promise<void>
Optional
onClear
onClear?: ((itemCount) => void | Promise<void>)
Type declaration
- (itemCount): void | Promise<void>
Returns void | Promise<void>
Optional
onKeyAdd
onKeyAdd?: ((key) => void | Promise<void>)
Type declaration
- (key): void | Promise<void>
Returns void | Promise<void>
Optional
onKeyDelete
onKeyDelete?: ((key, reason?) => void | Promise<void>)
Type declaration
- (key, reason?): void | Promise<void>
Parameters
- key: string
Optional
reason: string
Returns void | Promise<void>
Optional
onKeyExpire
onKeyExpire?: ((key) => void | Promise<void>)
Type declaration
- (key): void | Promise<void>
Returns void | Promise<void>
Optional
onKeyUpdate
onKeyUpdate?: ((key) => void | Promise<void>)
Type declaration
- (key): void | Promise<void>
Returns void | Promise<void>
Maximum number of items to store in this cache