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.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
ESM only since v2.0.0
Must use new keyword
When passing engine options as second arg, first arg must be the name
Creates a cache instance with a 60-second TTL, stores and retrieves a user object, then deletes and clears.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.