{"library":"lru-cache","type":"library","category":null,"description":"A high-performance LRU (Least Recently Used) cache for JavaScript. Current stable version is 11.5.1, with active development and frequent releases. Key differentiators: one of the most performant LRU implementations in JavaScript, supports both CommonJS and ES modules, TypeScript types included, and offers flexible options like max size with size calculation, TTL, dispose callbacks, fetch-method for stale-while-revalidate patterns. Notably requires at least one of max, ttl, or maxSize to prevent unbounded storage. Version 7+ saw major internal rewrites for performance; from v10, `fetch()` changed signature (removed stale boolean).","language":"javascript","status":"active","version":"11.5.1","tags":["javascript","mru","lru","cache","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install lru-cache","imports":["import { LRUCache } from 'lru-cache'","const { LRUCache } = require('lru-cache')","import { type LRUCacheOptions } from 'lru-cache'"]},{"cmd":"yarn add lru-cache","imports":[]},{"cmd":"pnpm add lru-cache","imports":[]}],"homepage":"https://github.com/isaacs/node-lru-cache#readme","github":"ssh://git@github.com/isaacs/node-lru-cache","docs":null,"changelog":null,"pypi":null,"npm":"lru-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}