A Redis-backed cache store for undici's cache interceptor, enabling HTTP response caching with Redis. Version 1.0.1 provides features like cache invalidation by tags, client-side caching (tracking cache), and support for managed Redis environments. Built on iovalkey for optimal Redis/Valkey connectivity. It integrates seamlessly with undici's interceptor pipeline and offers a separate RedisCacheManager for advanced cache monitoring and management. Compared to alternatives, it focuses on high performance and flexibility, making it suitable for production Node.js applications that require distributed caching.
npm install undici-cache-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Redis cache store and composes it with undici's cache interceptor to cache HTTP GET requests.
Upgrade Node.js to 18 or 20.
Ensure the server includes a header (e.g., 'Cache-Tags') and set 'cacheTagsHeader' to that header name.
Use a Redis URL with 'rediss://' or configure TLS options.
If providing a pre-configured client, set keyPrefix on that client instead.
npm install undici-cache-redis && ensure using ESM import syntax.
Ensure you have instantiated RedisCacheStore from 'undici-cache-redis'.
Start a Redis server or set REDIS_HOST/REDIS_PORT environment variables to point to a running instance.
No dependency data recorded yet.