@nestjs-pipeline/cache
v0.4.2
Published
Caching behavior for the NestJS pipeline — cache-manager v7 on top of Keyv with pluggable stores (memory, redis, memcache, sqlite, postgres).
Maintainers
Readme
@nestjs-pipeline/cache
Caching behavior for @nestjs-pipeline/core, powered by cache-manager v7 on top of Keyv. Transparently cache query results — declaratively, with zero changes to your handler code — and choose any backend: memory (default), redis, memcache, sqlite, or postgres.
Documentation: guide · API reference · all packages
Installation
pnpm add @nestjs-pipeline/cache cache-manager keyvPeer dependencies:
pnpm add @nestjs-pipeline/core @nestjs/common reflect-metadataRequires Node.js 22.12 or later, @nestjs/common ^12.1.0, @nestjs-pipeline/core ^0.4.2,
cache-manager ^7.0.0 and keyv ^5.0.0.
Published as an ES module; a CommonJS application loads it with require(). Coming from 0.3.x, see Upgrading from 0.3.x.
Optional store adapters — install only the one(s) you use:
pnpm add @keyv/redis # type: 'redis'
pnpm add @keyv/memcache # type: 'memcache'
pnpm add @keyv/sqlite # type: 'sqlite'
pnpm add @keyv/postgres # type: 'postgres'License
Distributed under a dual license: AGPLv3 (open source) or a Commercial
License. See LICENSE and
COMMERCIAL_LICENSE.txt, or contact
[email protected].
