A set of hooks for caching FeathersJS API endpoints with Redis. Version 1.1.5 (Feathers 3) and 0.3.6 (Feathers 2). Uses Redis for shared caching across cluster nodes, with per-request caching based on route params. Supports group cache busting and single-route purge. No recent updates, low maintenance activity. Different from in-memory caches because Redis cache is cluster-wide.
npm install feathers-hooks-rediscacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to apply the before and after hooks to cache service responses with a 1-hour duration.
Upgrade to 1.x for Feathers 3. If on Feathers 2, stick to 0.3.6 and pin exact.
Be aware of cache key explosion; use group clearing to invalidate related keys.
Use HTTP requests to clear groups; consider custom hook if needed.
Downgrade to 0.3.6 or implement custom caching.
If using nested routes, switch to version 0.3.6.
Run: npm install feathers-hooks-rediscache --save (for Feathers 3) or npm install feathers-hooks-rediscache@0.3.6 --save-exact (for Feathers 2)
Use: const { redisBeforeHook } = require('feathers-hooks-rediscache');Ensure Redis is running and check config/default.json for host/port.
No fix needed unless the key should exist. The error is non-critical; consider ignoring.