0.1.5 • Published 6 years ago
stratocacher-layer-lru v0.1.5
LayerLRU
A cache layer for stratocacher backed by lru-cache.
Options
max
The maximum number of items in the cache. Not setting this is kind of silly, since that's the whole purpose of this lib, but it defaults toInfinity
.copy
Always return a deep copy of values from the cache. Default istrue
. Set tofalse
to cache by reference (use care).