Official Docs links:
https://docs.nestjs.com/techniques/caching
https://docs.nestjs.com/techniques/caching#different-stores
Also add types
npm install --save-dev @types/cache-manager
npm run start:dev
In CLI, redis client redis-cli
check by
GET foo2
@SOHELAHMED7 Why did not you mention that how we should config it in our
app.module.ts
? I guess we have to configure it like this:TBH even I think this is not cache-manager configuration.