A lightweight Node.js Redis cache wrapper with simplified API for common caching operations. Currently at version 6.0.3, maintained actively with infrequent releases. Differentiates from redis and ioredis with a minimal API focused on caching (get/set/del) rather than full Redis command set. Not suitable for complex Redis operations or pub/sub.
npm install qiao-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a Redis cache client, sets a key with TTL, retrieves it, deletes it, and closes connection.
Use redis or ioredis directly for cluster/sentinel configurations.
Check for `null` explicitly when using `get()`.
Upgrade to v6+ and use async/await or .then().
Install 'redis' v3 or v4 compatible with this package: npm install redis@3
Ensure Redis server is running and accessible. Check host and port in options.