# node-cache: 3.2 out of 10

Keep, but not for new work. 10th of 10 in [Caching and Redis clients](https://elestia.ai/opensource/caching/index.md).

node-cache is a simple in-memory key-value cache for Node.js with TTL and events. Its own README says it is unmaintained, and nothing has been published since 2020. Code that already runs on it can keep it. For new work, pick lru-cache, @isaacs/ttlcache, or the maintained fork @cacheable/node-cache.

**Best for:** Existing codebases that already use it and only need a simple TTL cache in one Node process.

## Scores

- **Overall: 3.2** (likely 2.4 to 4.2)
  - Claude Opus 5.5 (2.5): The project says itself that it is unmaintained, and its open bugs go unfixed. lru-cache, @isaacs/ttlcache and the API-compatible @cacheable/node-cache do the same job better and are maintained. It still works and has no advisories, so existing users face no urgent risk, but new projects should not start with it.
  - GPT-6.2 Sol (3.8): Keep node-cache where its simple TTL behavior already meets the needs of a single-process app. For new local caches, lru-cache offers automatic eviction and active maintenance. The upper end reflects how well node-cache still fits small caches with predictable traffic, while years without a release and weak relative adoption weigh against choosing it today.
- **Needed by many: 5.3** (likely 4.2 to 6.4)
  - Claude Opus 5.5 (6.0): Many Node backends need a small in-process cache with expiry. But this tool covers only in-memory caching inside a single Node process, which is narrower than a category that also includes Redis clients and multi-tier caches.
  - GPT-6.2 Sol (4.5): A local TTL cache fits Node.js services that can reuse computed results or fetched data within one process. Each process has its own cache, which limits its use in apps that need shared state across replicas. State of JavaScript shows that Node.js is widely used, but it does not measure how many projects need process-local caching.
- **Helps a lot: 5.0** (likely 3.9 to 6.1)
  - Claude Opus 5.5 (4.0): It does basic TTL caching, with events and optional cloning. It has no LRU eviction and no default size bound, it uses periodic expiry checks, and open correctness bugs sit unfixed. lru-cache and @isaacs/ttlcache do the same job with bounded memory and active fixes.
  - GPT-6.2 Sol (6.0): Version 5.1.2 covers basic TTL caching with documented synchronous methods, batch operations, expiry events, and bundled types. The short examples make basic calls easy to write, though coding-agent accuracy was not measured. The key cap rejects writes when full, while lru-cache can evict the least recently used entry. A third-party microbenchmark favored lru-cache, and an open report identifies a value-handling bug in 5.1.2, leaving some uncertainty about behavior under other workloads.
- **Holds up over time: 1.3** (likely 0.3 to 2.3)
  - Claude Opus 5.5 (1.0): The README itself says the project is apparently unmaintained and tells people to fork it. There were no commits or releases in the last year, and the last npm publish was in 2020. Users have moved to the @cacheable/node-cache fork.
  - GPT-6.2 Sol (1.5): The maintainers call the project unmaintained, and the latest npm release was in July 2020. Open bug reports and zero commits in the past year give little reason to expect fixes, while lru-cache continues to ship releases. The small, unchanged API could remain usable for years, but the announced v6 rewrite has never shipped.
- **Used widely: 5.2** (likely 4.1 to 6.3)
  - Claude Opus 5.5 (5.0): About 25.8M downloads per 4 weeks and about 70k dependent repos show a large installed base. Downloads grew only 1.58x year over year, against a median of 4.1x, so it is losing share fast. Every peer except BentoCache grew much faster. Most of the use is old codebases, not new choices.
  - GPT-6.2 Sol (5.4): Ecosyste.ms found about 70,000 dependent repositories and 1,885 packages, a substantial installed base that trails lru-cache and cache-manager on the same index. Four-week npm downloads rose from 16.3 million to 25.8 million, a 1.58× gain that trails the 4.1× catalog median and both of those peers. That points to lost ground, while automated and transitive installs and incomplete repository coverage leave the number of new direct choices uncertain.
- **Vouched for: 4.1** (likely 3.0 to 5.2)
  - Claude Opus 5.5 (3.0): It is widely installed, but I found no current independent endorsement, benchmark or survey result for it. It had no Hacker News or Bluesky attention. Comparison sites point readers to lru-cache instead.
  - GPT-6.2 Sol (5.1): Barco and Cisco list version 5.1.2 in product software inventories, and Evolution API declares it as a runtime dependency. Those records show that other teams ship or depend on it, with limited insight into how it performs in production. A third-party benchmark favored lru-cache, and current package-specific satisfaction data is sparse.
- **Safe: 5.4** (likely 4.2 to 6.6)
  - Claude Opus 5.5 (5.0): It has no advisories, one dependency (clone), an MIT licence and a small code surface. But the Scorecard is 3.3, with Maintained at 0, no security policy and weak code review. Nobody active is around to fix a future vulnerability or a stale dependency (#327).
  - GPT-6.2 Sol (5.8): The MIT license is permissive, the package has one runtime dependency, and OSV lists zero advisories. The 3.3 OpenSSF Scorecard shows weak code review and workflow token permissions, and GitHub lists no security policy. Inactive maintenance makes future patch response uncertain, and the available evidence leaves current publishing access and release signing unverified.

## Good

- The API is simple: set, get, del and ttl, with per-key expiry and events for set, del and expired.
- It has a single runtime dependency, an MIT licence and no known security advisories.
- It ships TypeScript types, and AI agents know the API well from years of examples.
- @cacheable/node-cache is a maintained fork with the same API, so moving off it is easy.

## Bad

- The README says the project is apparently unmaintained, and the last npm release (5.1.2) was in July 2020.
- There is no size limit by default and no LRU eviction, so a busy cache can grow without bound.
- Recent bug reports go unanswered, such as undefined coming back as null (#330) and crashes on expired keys (#329).
- It only works inside one process, and it has no async store or Redis backend like cache-manager or Keyv offer.

## The numbers

- Downloads, 4 weeks: 26M
- In a year: +58%
- GitHub stars: 2.4k
- Commits, 12 months: 0
- Last npm release: Jul 2020
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/node-cache/node-cache
- npm: https://www.npmjs.com/package/node-cache

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
