
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
nestjs-cache-manager-v6
Advanced tools
Nest - modern, fast, powerful node.js web framework (@cache-manager)
A progressive Node.js framework for building efficient and scalable server-side applications.
cache-manager module for Nest originally published as part of the @nestjs/common
package. This package is a drop-in replacement for the deprecated CacheModule
.
Now, this module is only support cache-manager v6.
$ npm i --save nestjs-cache-manager-v6 cache-manager
For example @keyv/redis
$ npm i --save @keyv/redis cacheable
import { CacheModule } from 'nestjs-cache-manager-v6';
import KeyvRedis from '@keyv/redis';
import { Keyv } from 'keyv';
import { CacheableMemory } from 'cacheable';
@Module({
imports: [
CacheModule.register({
// Keyv | KeyvStoreAdapter | (Keyv | KeyvStoreAdapter)[]
stores: [
new Keyv({ store: new CacheableMemory({ ttl: 60000, lruSize: 5000 }) }),
new KeyvRedis('redis://192.168.100.1:6379'),
],
}),
],
})
export class AppModule {}
more doc visit: options
because cache-manager version 6 remove cache return interface, upgraded need use import { Cache } from 'nestjs-cache-manager-v6';
replace import { Cache } from 'cache-manager'
;
FAQs
Nest - modern, fast, powerful node.js web framework (@cache-manager)
The npm package nestjs-cache-manager-v6 receives a total of 8 weekly downloads. As such, nestjs-cache-manager-v6 popularity was classified as not popular.
We found that nestjs-cache-manager-v6 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.