A small and efficient cache provider for Node.js that supports in-memory, file, Redis, and MongoDB engines. Version 2.2.1 allows flexible configuration with TTL, custom delimiters, and Promise support. It provides a simple unified API (set, get, del, clear) with both callback and Promise interfaces. Unlike single-engine caches, cacheman lets you switch engines without changing application code, making it ideal for development vs production environments.
npm install cachemanNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a cache instance with a 60-second TTL, stores and retrieves a user object, then deletes and clears.
Use async/await or .then() instead of callbacks
Install engine package (e.g., npm install cacheman-redis) and pass name as string
Import 'ms' or use numeric seconds directly
Run: npm install cacheman-redis
Use: const cache = new Cacheman();
Ensure global Promise is available or use callbacks
No dependency data recorded yet.