{"library":"lru-cache-promise","type":"library","category":null,"description":"lru-cache-promise (v1.0.9) is a thin wrapper around Isaac Z. Schlueter's lru-cache that adds promise-based async value fetching via a getAsync method. It uses Bluebird for promises and ensures that only one fetch request per key is in flight at a time, deduplicating concurrent calls. The package is stable with no recent releases and minimal maintenance. It differs from other caching libraries by being extremely lightweight and focused solely on adding promise support to lru-cache, without additional features like TTL or statistics.","language":"javascript","status":"maintenance","version":"1.0.9","tags":["javascript","lru","cache","lru-cache"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install lru-cache-promise","imports":["import createCache from 'lru-cache-promise';","const cache = require('lru-cache-promise')();","cache.getAsync('key', fetchFn).then(console.log);"]},{"cmd":"yarn add lru-cache-promise","imports":[]},{"cmd":"pnpm add lru-cache-promise","imports":[]}],"homepage":"https://github.com/balihoo/lru-cache-promise#readme","github":"https://github.com/balihoo/lru-cache-promise","docs":null,"changelog":null,"pypi":null,"npm":"lru-cache-promise","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}