Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 424 Bytes

File metadata and controls

12 lines (8 loc) · 424 Bytes

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).