Skip to content

CacheEvictionPolicyFactory<K> = (capacity) => CacheEvictionPolicy<K>

Defined in: packages/cache/src/cache.ts:306

Build one cache’s CacheEvictionPolicy. Called once per cache, at construction and after the options are validated, with the validated capacity: in entries without weigh, in weight with it.

K

number

CacheEvictionPolicy<K>