A lightweight Redis-based shared caching library for Node.js, version 1.4.1. Provides simple and efficient caching with TTL support, built on top of ioredis. Ships TypeScript types and requires Node 10+. Minimal API surface compared to alternatives like node-cache-manager.
npm install d2c-rcachesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Redis-backed cache instance, sets and retrieves a value with TTL.
Always provide a unique prefix when multiple apps share the same Redis instance.
Use numeric TTL values, e.g., ttl: 60.
Consider forking or migrating to an actively maintained caching library.
Run: npm install ioredis
Use: const RCaches = require('d2c-rcaches').default;