redis-lru-cache

JSON →
library 1.0.16 ·javascript
verified Jun 7, 2026

A composite cache that combines an in-memory LRU layer with a Redis backend, using Redis pub/sub to stay synchronized across multiple processes or cluster nodes. Version 1.0.16 is the latest stable release, with no recent updates since its initial publish. It provides configurable LRU size, Redis TTL, and optional automatic clearing on instantiation. Differentiators include built-in cluster awareness without external coordination and an optional retrieveItem callback for lazy-loading missing keys. Requires Redis server 2.8.3+ and the `redis` npm package v2.x.