Closed mciuchitu closed 1 year ago
When you pass store object to CacheModule, store is ignored and in-memory cache is used instead.
https://github.com/Leichtwind/nestjs-typescript-starter-9kbyw9
npm ci
npm start
curl localhost:3000
Hello World!
Cached value
Trying to get cache
Trying to set cache
CacheModule uses passed store object
No response
9.2.0
[Nest Platform Information] platform-express version : 9.2.0 schematics version : 9.0.3 testing version : 9.2.0 common version : 9.2.0 core version : 9.2.0 cli version : 9.1.5
Let's track this here https://github.com/nestjs/nest/pull/10591
Is there an existing issue for this?
Current behavior
When you pass store object to CacheModule, store is ignored and in-memory cache is used instead.
Minimum reproduction code
https://github.com/Leichtwind/nestjs-typescript-starter-9kbyw9
Steps to reproduce
npm ci
npm start
curl localhost:3000
Hello World!
instead ofCached value
Trying to get cache
orTrying to set cache
in consoleExpected behavior
CacheModule uses passed store object
Package
Other package
No response
NestJS version
9.2.0
Packages versions
Node.js version
No response
In which operating systems have you tested?
Other
No response