# cache-manager: 6.2 out of 10

Reasonable, with limits. 9th of 10 in [Caching and Redis clients](https://elestia.ai/opensource/caching/index.md).

cache-manager is a long-running Node.js caching layer, now rebuilt on Keyv stores. It gives you one get/set/wrap API over memory, Redis and other backends, and it is the default under NestJS's official caching module. It works well for simple cache-aside and tiered caching. But in August 2026 a hijacked maintainer account pushed a malicious release (7.2.10), and BentoCache does advanced multi-tier caching better, so it is a reasonable pick rather than a clear default.

**Best for:** NestJS and Node.js backend teams that want a simple, store-agnostic cache API with wrap() memoization over memory or Redis.

## Scores

- **Overall: 6.2** (likely 5.1 to 7.3)
  - Claude Opus 5.5 (5.5): It is a practical, widely installed cache abstraction, and NestJS users get it almost by default. But it is limited next to BentoCache for multi-tier caching. It is losing share relative to the market, and the August 2026 account hijack shows the risk of one maintainer controlling releases. Pin your versions, turn off install scripts, and choose it mainly for NestJS or simple cache-aside needs.
  - GPT-6.2 Sol (6.9): cache-manager is a good choice for new NestJS services that want memory and Redis behind one API, especially when they will use `wrap()` for shared loads and early refresh. For a bounded in-process cache, lru-cache is simpler, and node-redis is the better fit for direct Redis commands. Keyv compatibility, slower relative adoption, and uncertainty about the new publishing controls keep it from being a category default.
- **Needed by many: 5.8** (likely 4.7 to 6.9)
  - Claude Opus 5.5 (6.0): Most server-side Node.js apps that call slow databases or APIs eventually need an app-level cache. cache-manager targets exactly that job. It is backend-only and an abstraction layer rather than a Redis client, so it serves a large group but not most JavaScript developers.
  - GPT-6.2 Sol (5.6): Caching repeated database reads and expensive work is useful across many Node.js backends. cache-manager is framework-independent, but its main appeal is for services that want interchangeable stores or memory and Redis together. Surveys show demand for Redis and NestJS, while the share of JavaScript and TypeScript projects that need this particular setup is uncertain.
- **Helps a lot: 6.7** (likely 5.6 to 7.7)
  - Claude Opus 5.5 (6.0): Since v6, cache-manager runs on Keyv stores. It offers tiered stores, wrap() memoization, TTLs and background refresh, with good types. Users who need stampede protection at the framework level, tag invalidation, stale-while-revalidate or local-cache sync turn to BentoCache or custom layers. It is good for simple cache-aside, with clear limits for heavier production use.
  - GPT-6.2 Sol (7.3): Version 7.2.9 has bundled types, clear examples for common calls, and a useful `wrap()` API for sharing loads and refreshing entries. An independent NestJS test observed one database call for 50 concurrent cold requests using `wrap()`, alongside stale local entries across instances after invalidation. Keyv v6 instances can silently break `ttl()` and refresh, and the available measurements cover a limited set of setups.
- **Holds up over time: 6.1** (likely 4.7 to 7.5)
  - Claude Opus 5.5 (6.0): The monorepo is active: 278 commits and 16 releases in the last year, one open issue and no open PRs. But cache-manager itself has had no npm release since June 2026, and one maintainer carries the whole family. The account compromise also halted publishing for a while. NestJS still depends on it, which keeps it relevant.
  - GPT-6.2 Sol (6.2): The shared repository is active and maintainers merged a contributed fix for bulk deletion, which appears in the November GitHub release notes. The npm package had four releases in the past year and its current published version dates to June. Users reported migration work after the v6 adapter switch, and v7 still relies on the maintenance-only Keyv v5 line. The number of release approvers and the package's funding are unclear.
- **Used widely: 6.4** (likely 5.3 to 7.5)
  - Claude Opus 5.5 (6.5): It has about 25M downloads per 4 weeks and 107k dependent repos, more repos than ioredis. Much of that use comes through @nestjs/cache-manager. Its growth ratio of 2.6 is well below the 4.1 median, so it is losing share even though its totals are large.
  - GPT-6.2 Sol (6.3): ecosyste.ms found about 107,000 dependent repositories, between ioredis and node-redis and well below Keyv and lru-cache. Four-week downloads rose from 9.8 million to 25.1 million, or 2.56×, below the 4.1× catalog median and behind those four peers. NestJS caching accounts for some adoption, so installs overstate how often teams independently choose the library. Shared repository stars and sparse discussion offer little precision on new adoption.
- **Vouched for: 6.0** (likely 4.7 to 7.3)
  - Claude Opus 5.5 (5.0): Its main endorsement is NestJS's official caching module, which builds on it. I found no survey data, independent benchmarks or recent production write-ups. The write-ups that do exist mostly describe its limits or the 2026 compromise.
  - GPT-6.2 Sol (7.0): NestJS builds its official caching module on cache-manager, and Twenty CRM declares the current release line in its server. Independent testing confirms useful behavior under concurrent load and shows how Redis failure handling depends on adapter settings. Direct satisfaction data and evidence from large deployments outside NestJS are sparse.
- **Safe: 4.9** (likely 3.8 to 6.4)
  - Claude Opus 5.5 (4.0): On 4 August 2026 an attacker took over the maintainer's GitHub account and published cache-manager 7.2.10. It ran a credential stealer at install time and passed provenance checks. The maintainer and npm removed it and restored 7.2.9 within about a day. Still, one account controls releases, there is no Scorecard, and its two dependencies come from the same compromised family. The MIT licence and small dependency tree help.
  - GPT-6.2 Sol (5.8): The August ChainDrop compromise put a malicious 7.2.10 tarball on npm through the normal release workflow. The affected npm version was removed and 7.2.9 was restored as latest the same day. The package has two direct dependencies and an MIT licence, and the current workflow stages releases for maintainer approval with two-factor authentication. The new controls have a short track record, and the supplied snapshot includes no OpenSSF Scorecard or verified count of release approvers.

## Good

- One small API (get, set, del, wrap) works across any Keyv store, including in-memory, Redis, Valkey, Mongo and Postgres.
- Supports several tiers of stores and background refresh through refreshThreshold, so an in-memory tier can sit in front of Redis.
- NestJS's official @nestjs/cache-manager builds on it, so many tutorials and AI-generated snippets target it.
- It ships TypeScript types, has only two dependencies, uses the MIT licence and keeps an almost empty issue tracker.

## Bad

- In August 2026 a hijacked maintainer account published a malicious release, 7.2.10, that stole credentials at install time and passed npm provenance checks.
- It has no tag-based invalidation, grace periods or cross-instance bus sync, and BentoCache offers all of these.
- Breaking changes across v5, v6 and v7 (new store adapters, null becoming undefined on a miss) forced migrations and left NestJS users with version mismatches.
- One person maintains it, and the same author's newer 'cacheable' package now gets most of the attention.

## The numbers

- Downloads, 4 weeks: 25M
- In a year: ×2.6
- GitHub stars: 2k
- Commits, 12 months: 278
- Last npm release: Jun 2026
- Advisories, 24 months: 1
- Licence: MIT
- GitHub: https://github.com/jaredwray/cacheable
- npm: https://www.npmjs.com/package/cache-manager

The repository holds several cache packages by the same author.

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.
