Redis caching hooks for Feathers.js services, version 1.2.2. This package provides before/after hooks to cache API responses in Redis, supporting per-route and group-based cache purging. It is a fork of feathers-hooks-rediscache with simplified API, pagination support, custom cache key generation, and configurable logger. Designed for HTTP endpoints in clustered Feathers applications where in-memory caching would be duplicated across nodes. Release cadence is low; last release was a patch update. Alternatives include feathers-hooks-rediscache (original, less feature-rich).
npm install feathers-redis-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic Feathers.js app with Redis caching for find/get and cache purging on mutations.
Update code to not use removed options; pass expiration in after({ expiration: seconds }).Set expiration in after hook options instead of before hook.
Ensure config.json uses 'redis' key instead of 'redisCache'.
Migrate to 'feathers-redis-cache' and update hook imports.
Be aware that caching varies by URL and query string; plan purge strategy accordingly.
Use only over HTTP; consider alternatives for socket-based caching.
Run npm install feathers-redis-cache or yarn add feathers-redis-cache.
Use named import: import { before } from 'feathers-redis-cache'.Start Redis server or configure redis host/port in config/default.json under 'redis' key.