{"library":"bluecache","type":"library","category":null,"description":"Bluecache is a read-through, in-memory, least recently used (LRU) cache for Node.js. Version 4.1.3 wraps the popular lru-cache library and adds a Promise-based API that combines get and set into a single call, preventing cache stampedes by immediately caching and returning a Promise for the priming value. It supports options like max, maxAge (with ms string parsing), stale, custom length, dispose, and a pruneInterval for proactive stale entry removal. The cache is lazily enforced and stores a memo while the value resolves. It has a stable release cadence and is suited for simple in-memory caching in Node.js applications.","language":"javascript","status":"active","version":"4.1.3","tags":["javascript","lru cache","least recently used cache","read-through cache","in-memory cache"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install bluecache","imports":["const Bluecache = require('bluecache');","const cache = Bluecache({ max: 100 });","const cache = Bluecache({ maxAge: '30m', pruneInterval: 60000 });"]},{"cmd":"yarn add bluecache","imports":[]},{"cmd":"pnpm add bluecache","imports":[]}],"homepage":"https://github.com/kurttheviking/bluecache#readme","github":"git://github.com/kurttheviking/bluecache","docs":null,"changelog":null,"pypi":null,"npm":"bluecache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}