Recacheman v3.0.0 is a small, efficient Node.js cache provider forked from cacheman, supporting in-memory, file, Redis, and MongoDB backends. Provides a unified API with TTL support (including ms-format strings), event hooks, and promise/async/await compatibility. Ships TypeScript definitions. Released semver; v3 drops Node 10/12/14/16/18 support, requires Node 20+. Alternatives: node-cache (memory-only), cacheman (original, less maintained).
npm install recachemanNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows ESM import, Redis engine instantiation, set/get/delete with promises, and TTL in seconds.
Upgrade Node.js to 20+ or stick with recacheman@2.x
Use import statement or dynamic import() in CommonJS
Always use 'new Cacheman(...)'
Use .then() or async/await instead of callbacks
Use string keys for exact control, or set delimiter option
Pass valid ms strings or numeric seconds
const cache = new Cacheman(...)
Use import Cacheman from 'recacheman' or dynamic import()
Pass a callback or use async/await. Check if promises are enabled via options.Promise
import Cacheman from 'recacheman' (not import { Cacheman } from 'recacheman')