{"library":"stale-lru-cache","type":"library","category":null,"description":"stale-lru-cache is an in-memory LRU cache for Node.js that implements stale-while-revalidate strategy, allowing cached items to be served stale while being refreshed in the background. Version 5.1.1 is the latest stable release. It supports custom Cache-Control headers for HTTP caching, max age, max size, and configurable item sizing. Key differentiators: fault-tolerant background revalidation that hides refresh latency, shields from revalidation errors, and optimizes hit-ratio by discarding least recently used items first.","language":"javascript","status":"active","version":"5.1.1","tags":["javascript","lru","cache","stale-while-revalidate","max-age","cache-control"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install stale-lru-cache","imports":["var Cache = require('stale-lru-cache');","import Cache from 'stale-lru-cache';","const Cache = require('stale-lru-cache');"]},{"cmd":"yarn add stale-lru-cache","imports":[]},{"cmd":"pnpm add stale-lru-cache","imports":[]}],"homepage":"https://github.com/cyberthom/stale-lru-cache#readme","github":"https://github.com/cyberthom/stale-lru-cache","docs":null,"changelog":null,"pypi":null,"npm":"stale-lru-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}