cachified-redis-adapter is a Redis cache adapter for @epic-web/cachified, extracted into its own package to avoid breaking changes in the core library. Current stable version is 2.0.2, requiring Node >=16 and @epic-web/cachified ^5.0.0. It ships TypeScript types and is maintained by the community. Unlike the bundled adapters in older cachified versions, this package allows independent versioning. It provides a simple redisCacheAdapter function that wraps a Redis client. For JSON data, consider the companion cachified-redis-json-adapter.
npm install cachified-redis-adapterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Redis client, wraps it with redisCacheAdapter, and uses it with cachified to cache a value.
Update @epic-web/cachified to >=2.0.0.
Implement custom error handling and reconnection strategy on the Redis client.
Ensure values are JSON-serializable or use cachified-redis-json-adapter for JSON-specific handling.
Call redis.connect() before creating the cache adapter.
Run npm install cachified-redis-adapter and ensure Node >=16.
Use import { redisCacheAdapter } from 'cachified-redis-adapter'.Use import { createClient } from 'redis'.