A memory cache store for cache-manager using node-cache. Version 1.1.1 is current. Provides an alternative to the built-in LRU store with support for TTL and refreshThreshold. Easy drop-in replacement. Published on npm, maintained on GitHub. Suitable for Node.js applications using cache-manager. Not actively maintained, last update September 2019.
npm install cache-manager-node-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up and use the node-cache store with cache-manager including TTL and refreshThreshold.
Use a distributed cache store like Redis for multi-process environments.
Pass the default export directly as `store: NodeCacheStore`.
Consider using cache-manager's built-in memory store or switch to a maintained alternative.
Use `store: NodeCacheStore` in the config object, not `new`.
Pass the imported default export directly as `store: NodeCacheStore`.
Run `npm install cache-manager` along with cache-manager-node-cache.