# node-cache/node-cache

a node internal (in-memory) caching module

Repository: https://github.com/node-cache/node-cache
Canonical: https://ross.abutalabs.com/products/node-cache
Language: CoffeeScript
License: MIT
License Family: permissive
Topics: nodejs, cache, memory, internal, caching, fast
Last push: 2024-06-04T17:30:54+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5433, "days_push": 820, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2372, forks 146 (observed 2026-08-28T04:06:41.872535+00:00)

## What it is
node-cache is a simple, fast in-memory caching module for Node.js with set, get, and delete methods that works like memcached. Keys support TTL-based expiration and are stored in a single object, with a practical limit of around one million keys.

## Use cases
- cache api responses in memory with ttl expiration
- store computed values in a node process to avoid recomputation
- replace an external memcached dependency for simple local caching
- rate-limit or deduplicate requests within a single node server
- cache database query results in-process

## When to choose
- you need a lightweight, dependency-free in-memory cache for a single Node.js process
- you want memcached-like set/get/delete semantics with key TTLs
- your dataset fits in memory (up to roughly 1m keys)

## When to avoid
- you need a distributed cache shared across multiple processes or servers
- you need persistence or eviction policies like LRU
- you want an actively maintained project - the maintainers state it is unmaintained

## Facets
- artifact type: library
- maturity: maintenance
- function: caching
- domain: developer-tools, backend, performance
- platform: -
- tags: in-memory-cache, ttl, memcached-like, key-value-store, nodejs

## Member repositories
- node-cache/node-cache (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:41.872535+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:35:09.593237+00:00, confidence not recorded.
  - readme: https://github.com/node-cache/node-cache (fetched 2026-08-28T04:06:41.872535+00:00, sha eb39495803e3)
  - registry_npm: https://registry.npmjs.org/node-cache (fetched 2026-08-29T10:16:25.711368+00:00, sha 4ad640db036e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
