LRUCache

JSON →
library 1.0.3 ·javascript maintenance
verified Jun 7, 2026

LRUCache is a minimal LRU cache implementation for Node.js and browsers (v1.0.3). It uses a linked list to enforce LRU eviction; get, set, and update operations promote accessed keys. Unlike popular alternatives like lru-cache, it offers a smaller API surface with methods like staleKey() and popStale(). Active development appears stalled (last release Jul 2022, few updates). Suitable for simple caching needs where a lightweight dependency is preferred.