Elestia Open Source Ratings
3.2

node-cache

Keep, but not for new work. 10th of 10 caching and Redis clients.

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.

GitHubnpm

Scores

Overall3.2

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 2.5, likely 2.0 to 3.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, likely 2.8 to 4.9

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.

  • github.com/node-cache/node-cache/blob/master/README.md: Documents simple local TTL caching and acknowledges that the project is unmaintained.
  • github.com/isaacs/node-lru-cache: Documents bounded caches with automatic eviction.
  • npm latestPublishedAt, peers lru-cache: node-cache last shipped in July 2020, and lru-cache shipped in September 2026.
  • npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Download growth falls well below the catalog baseline.
Needed by many5.3

How many developers need a tool for this job?

Claude Opus 5.5: 6.0, likely 5.0 to 7.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, likely 3.3 to 5.7

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 lot5.0

How well does it do the job for those who need it?

Claude Opus 5.5: 4.0, likely 3.0 to 5.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, likely 4.8 to 7.1

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 time1.3

Will it still be a good choice in two years?

Claude Opus 5.5: 1.0, likely 0.0 to 2.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, likely 0.5 to 2.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.

  • github.com/node-cache/node-cache/blob/master/README.md: The maintainers acknowledge inactivity, mention past sponsorship, and still describe a future v6.
  • github commitsLastYear, openIssues, openPullRequests: Zero commits, 55 open issues, and 22 open pull requests.
  • npm latestPublishedAt, versionsLastYear: The latest npm release was in July 2020, with zero releases in the past year.
  • github.com/node-cache/node-cache/issues/330: A bug report against the latest release remains open.
  • peers lru-cache: 66 commits in the past year and a September 2026 release.
Used widely5.2

How many use it, and is that growing?

Claude Opus 5.5: 5.0, likely 4.0 to 6.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.

  • npm downloadsLast4Weeks: 25.8M now vs 16.3M a year ago, ratio 1.58 vs median 4.1
  • dependents repos: 69,983 dependent repos, 1,885 packages
  • peers downloads: cache-manager reached similar volume, with 2.6x growth

GPT-6.2 Sol: 5.4, likely 4.2 to 6.6

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.

  • dependents repos, packages: 69,983 indexed repositories and 1,885 indexed packages.
  • npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 1.58× year-over-year download growth against the catalog's 4.1× median.
  • peers lru-cache, cache-manager: Both have more indexed dependent repositories and faster download growth.
  • github stars, bluesky posts, hackerNews stories: 2,373 stars and zero matched Bluesky posts or Hacker News stories.
Vouched for4.1

Who stands behind it being good?

Claude Opus 5.5: 3.0, likely 2.0 to 4.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, likely 3.9 to 6.4

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.

Safe5.4

How safe is it to depend on?

Claude Opus 5.5: 5.0, likely 4.0 to 6.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).

  • advisories total: 0 known advisories
  • scorecard score: 3.3, with Maintained 0 and Security-Policy 0
  • npm dependencies: 1 runtime dependency
  • github.com/node-cache/node-cache/issues: Issue #327 reports outdated dependencies

GPT-6.2 Sol: 5.8, likely 4.3 to 7.2

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.

  • npm dependencies, license: One direct runtime dependency and an MIT license.
  • advisories total: OSV lists zero advisories for the package.
  • scorecard score, checks: 3.3 overall, 1 for code review, 0 for token permissions, and no signed-release score.
  • github.com/node-cache/node-cache/security: GitHub lists no security policy or published repository advisories.
  • github.com/node-cache/node-cache/blob/master/README.md: The maintainers acknowledge inactivity and discuss control of npm publishing.

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

npm downloads, 4 weeks
26M +58% in a year
GitHub stars
2.4k
Commits, 12 months
0
npm version
5.1.2 Jul 2020
Versions, 12 months
0
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
3.3 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (node-cache/node-cache), npm (node-cache), OSV and the OpenSSF Scorecard.

Caching and Redis clients

  1. 8.3node-redis
  2. 8.2lru-cache
  3. 7.3Upstash Redis
  4. 7.1Valkey GLIDE
  5. 7.0unstorage
  6. 6.9ioredis
  7. 6.5BentoCache
  8. 6.3Keyv
  9. 6.2cache-manager
  10. 3.2node-cache
Compare all 10 on six scores