Extremely simple in-memory store for node-cache-manager, primarily used for unit testing. Version 1.1.0 is stable with no active release cadence; the built-in memory store in cache-manager already exists, making this package redundant for production use. It only maintains an in-memory object and does not support TTL. Tests exist solely to verify interface compliance.
npm install cache-manager-memory-storeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: initialize cache with memory store, set and get a value.
Do not rely on TTL; use this store only for testing where TTL is not required.
Omit the store parameter entirely to use the built-in memory store.
Use ES module import syntax or migrate to dynamic import().
Change 'const MemoryStore = require(...)' to 'import MemoryStore from ...'
Import only the main entry point: 'cache-manager-memory-store'
Use default import: import MemoryStore from 'cache-manager-memory-store'