Egg.js cache plugin based on cache-manager. Version 0.0.7 (released 2019) supports memory and external stores like Redis via cache-manager stores. Provides set/get/del/has/reset via app.cache, with optional TTL and closure/promise support. Low release cadence; no recent updates. Differentiator: integrates seamlessly into Egg.js lifecycle and configuration.
npm install egg-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates Egg.js plugin configuration and basic cache set/get operations.
Stick to known working version or migrate to newer alternatives like egg-redis.
Refer to cache-manager store docs for correct driver format.
Consider using @eggjs/cache or other actively maintained cache plugins.
Set ttl to a positive number or undefined to avoid ambiguity.
Run: npm install egg-cache --save and add to config/plugin.js as described.
Check config/plugin.js has exports.cache = { enable: true, package: 'egg-cache' }