An in-memory caching library for Node.js, version 1.1.0, serving as a cache engine for the cacheman module. It provides a simple key-value store with TTL support and callback-based API. Unlike persistent stores like Redis or Memcached, this is lightweight and zero-config, suitable for single-process caching. Last updated in 2013, it is no longer actively maintained but still functional for legacy projects. The package is stable but deprecated in favor of modern alternatives like lru-cache or native Map.
npm install cacheman-memoryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a memory cache, setting an item with TTL, retrieving it, and deleting it using callbacks.
Consider using lru-cache or native Map for in-memory caching.
Wrap with util.promisify or use modern alternatives.
Always use the 'new' keyword to instantiate.
Convert milliseconds to seconds before passing ttl.
Check for null explicitly.
const cache = new CachemanMemory();
const cache = new CachemanMemory();
npm install cacheman-memory
Always pass a callback function to async methods.
No dependency data recorded yet.