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.
Type Parameters
Section titled “Type Parameters”K
Parameters
Section titled “Parameters”capacity
Section titled “capacity”number