# @nestjs/cache-manager

> Nest - modern, fast, powerful node.js web framework (@cache-manager)

Latest version **12.0.0** (published 2026-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nestjs/cache-manager
pnpm add @nestjs/cache-manager
yarn add @nestjs/cache-manager
bun add @nestjs/cache-manager
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 12.0.0 |
| Published | 2026-08-27 |
| First published | 2023-04-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^20.19.0 \|\| ^22.12.0 \|\| >=24.0.0 |
| Dependencies | 0 |
| Unpacked size | 26.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 168 |
| Author | Kamil Mysliwiec |
| Maintainers | nestjscore, kamilmysliwiec |

## Links

- npm: https://www.npmjs.com/package/@nestjs/cache-manager
- Repository: https://github.com/nestjs/cache-manager
- Homepage: https://github.com/nestjs/cache-manager#readme
- Issues: https://github.com/nestjs/cache-manager/issues
- npm.io page: https://npm.io/package/@nestjs/cache-manager

## Recent versions

- 12.0.0 (latest) — 2026-08-27
- 3.0.0-next.0 (next) — 2024-11-22
- 3.1.3 — 2026-06-11
- 3.1.2 — 2026-04-24
- 3.1.1 — 2026-04-23
- 3.1.0 — 2025-12-23
- 3.0.1 — 2025-03-25
- 3.0.0 — 2025-01-17
- 2.3.0 — 2024-10-21
- 2.2.2 — 2024-03-25
- 2.2.1 — 2024-02-07
- 2.2.0 — 2024-01-08
- 2.1.1 — 2023-11-02
- 2.1.0 — 2023-07-17
- 2.0.1 — 2023-06-23
- … 2 more at https://npm.io/package/@nestjs/cache-manager/versions

## README

<p align="center">
  <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
</p>

  <p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
    <p align="center">
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/dm/@nestjs/core.svg" alt="NPM Downloads" /></a>
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
<a href="https://opencollective.com/nest#backer"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
<a href="https://opencollective.com/nest#sponsor"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
  <a href="https://paypal.me/kamilmysliwiec"><img src="https://img.shields.io/badge/Donate-PayPal-dc3d53.svg"/></a>
  <a href="https://twitter.com/nestframework"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
</p>

## Description

[cache-manager](https://www.npmjs.com/package/cache-manager) module for [Nest](https://github.com/nestjs/nest) originally published as part of the `@nestjs/common` package. This package is a drop-in replacement for the deprecated `CacheModule`.

## Installation

```bash
$ npm i --save @nestjs/cache-manager cache-manager
```

### Requirements

This package ships as ESM only. It requires Node.js `^20.19.0 || ^22.12.0 || >=24.0.0` — the versions in which `require(esm)` is available unflagged.

CommonJS applications (including the default `nest new` setup) can keep using a regular `import` statement: TypeScript compiles it to `require()`, and Node loads the ESM build through `require(esm)`. On older Node.js versions that call fails with `ERR_REQUIRE_ESM`; upgrade Node.js or switch your application to ESM.

## Quick Start

[Overview & Tutorial](https://docs.nestjs.com/techniques/caching)

## Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).

## Stay in touch

- Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)

## License

Nest is [MIT licensed](LICENSE).

---
_Source: https://npm.io/package/@nestjs/cache-manager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
