stratocacher-layer-lru

0.1.5 • Public • Published

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 to Infinity.

  • copy Always return a deep copy of values from the cache. Default is true. Set to false to cache by reference (use care).

Package Sidebar

Install

npm i stratocacher-layer-lru

Weekly Downloads

17

Version

0.1.5

License

Apache-2.0

Unpacked Size

4.9 kB

Total Files

5

Last publish

Collaborators

  • gigabo