lru-cache-node
JSON →A lightweight, high-performance LRU cache for Node.js using a doubly-linked list and hash map for O(1) get/set operations. Version 1.1.0 supports optional per-key expiry (TTL), returning stale values before eviction, and methods like peek, delete, has, forEach, and toArray. Compared to alternatives like lru-cache, lru-cache-node has a simpler API, lower overhead for small caches, and no external dependencies. It is suitable for minimal caching needs in Node.js applications.
Resources
packagelru-cache-node ↗