TiloBox
Back to directory
node-cache project preview

node-cache

Simple and fast in-process caching module for Node.js with TTL and key event hooks.

LicenseMIT
GitHub stars2.8k
Last commit6 days ago
Tags5 topics
Inprocess Memory CacheSimple Nodejs CacheTtl Key EvictionDeveloper ToolsNodecache Module
Overview

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.

Guided learning

Learn node-cache by building

Practical setup notes, real use cases, and copy-ready examples in one focused guide.

1 min read 2 sections
In this guide2 sections

Overview of node-cache

node-cache caches calculation results and API responses in local application process memory.

Quickstart

bash
1npm install node-cache
javascript
1import NodeCache from 'node-cache';
2const myCache = new NodeCache({ stdTTL: 100, checkperiod: 120 });
3myCache.set('invoice_token', 'xyz123');

node-cache is licensed under the permissive MIT License.

Related tools

More options with a similar category or technology profile.

node-cache FAQs

node-cache is listed as a Developer Tools tool on TiloBox. Review the overview, features, and official documentation on this page to decide whether it solves your specific workflow.

Start with the project's GitHub repository for supported installation and deployment instructions. Test the setup with representative data or a small project before rolling it out more widely.

node-cache is listed under the MIT license. Read the complete license text and the project's notices before using, modifying, or distributing the software.

Production readiness depends on your requirements. Review maintenance activity, security practices, documentation, backup and upgrade procedures, and compatibility with your stack; then validate it in a non-production environment.

node-cache is listed as an alternative to MemCachier. Compare the core workflow, deployment model, integrations, and licensing against your must-have requirements before switching.