Redis-backed caching library for the Volos system. Version 0.10.1 provides a simple cache interface with configurable TTL, encoding, and Redis connection settings (host, port, DB). It is a part of the Apigee Volos ecosystem, offering a consistent API via volos-cache-common. Supports namespaced caches. Note: this package is deprecated and no longer maintained; users should migrate to alternative caching solutions.
npm install volos-cache-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a Redis cache instance with a TTL, set a key-value pair, and retrieve it asynchronously.
Migrate to an alternative caching library such as ioredis or node-cache-manager with Redis store.
Ensure you pass a unique string as the first argument to create.
Expect Buffer values from get(); convert to string if needed using .toString().
Start Redis server or configure correct host/port in options.
Use default export: const cacheModule = require('volos-cache-redis'); then cacheModule.create(...).