Redis standalone caching library for Node.js and cache engine for cacheman. Current stable version is 2.1.0. Provides a simple API for caching with Redis, supporting TTL, connection strings, and client reuse. Designed to work with the cacheman ecosystem but can be used standalone. Uses the `redis` package v2.x as a peer dependency. Release cadence is low; the package is in maintenance mode with infrequent updates.
npm install cacheman-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic CRUD operations: set, get, and delete a cache entry with TTL.
Ensure TTL values are seconds; multiply by 1000 if converting from milliseconds.
Install 'redis@2' as a dependency, or use a compatibility layer.
Always check `err` in callbacks before using the result.
Consider alternative caching libraries like 'cache-manager-redis-store' or 'ioredis'.
Start Redis server or configure correct host/port in options.
Ensure the cache client is created after Redis is connected, or reuse an existing open client.
Check constructor arguments: options object or connection string must be valid.