node-cache
Simple and fast in-process caching module for Node.js with TTL and key event hooks.
Why consider node-cache?
node-cache is an open-source, in-memory caching engine for Node.js written in JavaScript. node-cache stores JavaScript objects and strings with configurable expiration timeouts, periodic eviction intervals, and event listeners for cache misses and deletions.
Learn node-cache by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide2 sections
Overview of node-cache
node-cache caches calculation results and API responses in local application process memory.
Quickstart
npm install node-cacheimport NodeCache from 'node-cache';const myCache = new NodeCache({ stdTTL: 100, checkperiod: 120 });myCache.set('invoice_token', 'xyz123');node-cache is licensed under the permissive MIT License.
Related tools
More options with a similar category or technology profile.
diskus
Minimal, fast alternative to du -sh written in Rust using multi-threaded directory traversal.
peco
Simplistic interactive filtering tool for Unix pipelines, process lists, and file trees.
Dapr CLI
Command-line tool for managing Dapr distributed application runtime environments and sidecars.
Freeze
Generate beautiful image screenshots and SVGs of code snippets and terminal outputs.