lru-cache
JSON →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).
Traffic · last 30 days stale · no recent hits
total hits 12
actors 2 distinct systems
last hit 17d ago AhrefsBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · VN · 🇨🇦 Canada · 🇪🇸 Spain
Resources
packagelru-cache ↗