{"library":"caching-map","type":"library","category":null,"description":"caching-map v1.0.2 is an in-memory LRU cache with an ES6 Map-like API. It supports configurable cache limits, per-key cost for memory-aware eviction, per-key TTL expiration, and a materialize callback to avoid thundering herds for async resources. Unlike lru-cache, it offers easy enable/disable via zero/infinite limits and integrates with promises for async loading. Release cadence is low; no recent updates. Key differentiators include cost-based eviction, expired-key-first eviction, and full iteration order from most to least recently used.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","cache","caching","es2015","es6","in-memory","lru","lru-cache","map"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install caching-map","imports":["const Cache = require('caching-map');","const cache = new Cache(100);\ncache.get('key');\ncache.set('key', value);\ncache.delete('key');\ncache.keys();","cache.materialize = async (key) => { return fetchData(key); };"]},{"cmd":"yarn add caching-map","imports":[]},{"cmd":"pnpm add caching-map","imports":[]}],"homepage":"https://github.com/broadly/caching-map#readme","github":"https://github.com/broadly/caching-map","docs":null,"changelog":null,"pypi":null,"npm":"caching-map","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}