Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache Module doesn't accept store object and uses memory caching instead #10590

Closed
3 of 15 tasks
mciuchitu opened this issue Nov 23, 2022 · 1 comment
Closed
3 of 15 tasks
Labels
needs triage This issue has not been looked into

Comments

@mciuchitu
Copy link
Contributor

mciuchitu commented Nov 23, 2022

Is there an existing issue for this?

  • I have searched the existing issues

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

  1. npm ci
  2. npm start
  3. curl localhost:3000
  4. Response is Hello World! instead of Cached value
  5. There are no messages Trying to get cache or Trying to set cache in console

Expected behavior

CacheModule uses passed store object

Package

  • I don't know. Or some 3rd-party package
  • @nestjs/common
  • @nestjs/core
  • @nestjs/microservices
  • @nestjs/platform-express
  • @nestjs/platform-fastify
  • @nestjs/platform-socket.io
  • @nestjs/platform-ws
  • @nestjs/testing
  • @nestjs/websockets
  • Other (see below)

Other package

No response

NestJS version

9.2.0

Packages versions

[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

Node.js version

No response

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@mciuchitu mciuchitu added the needs triage This issue has not been looked into label Nov 23, 2022
@mciuchitu mciuchitu changed the title Cache Module doesn't accept Cache Module doesn't accept store object and uses memory caching instead Nov 23, 2022
@kamilmysliwiec
Copy link
Member

Let's track this here #10591

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue has not been looked into
Projects
None yet
Development

No branches or pull requests

2 participants