Interface LRUCacheOptions<K, V>
interface LRUCacheOptions<K = string, V = unknown> { max?: number; ttl?: number; updateAgeOnGet?: boolean; dispose(val: LRUCacheItem<V>, key: K, reason: DisposeReason): void;} Properties
Optional
updateAgeOnGet
updateAgeOnGet?: boolean
Methods
Optional
dispose
- dispose(val: LRUCacheItem<V>, key: K, reason: DisposeReason): void
Parameters
- val: LRUCacheItem<V>
- key: K
- reason: DisposeReason
Returns void
The maximum number of items that remain in the cache. default 500