Redis store for node-cache-manager (v0.6.0, last released 2018). Provides a caching layer using Redis as the backend, supporting single and multi-tier caching with configurable TTL, pattern-based key scanning via SCAN, and event listeners. It wraps the ioredis client and integrates with the cache-manager API for easy setup. The package has not been updated in years and is functionally replaced by cache-manager-ioredis or cache-manager-redis-store.
npm install cache-manager-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Redis-backed cache and demonstrates set/get/del operations with error handling.
Replace dependency with cache-manager-redis-store or cache-manager-ioredis.
Use the redisInstance option with an ioredis instance configured for TLS.
Use commands and options as per ioredis documentation, not node_redis.
If using redisInstance, set password in that instance.
Update Node.js or use an older version of the package.
Always provide a callback: cache.set('key', 'value', (err) => { ... }).Ensure ioredis is installed; do not install node_redis unless needed.
Run npm install cache-manager-redis and use require('cache-manager-redis').