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

Set with CacheStoreSetOptions doesn't set correct TTL #173

Closed
2 of 4 tasks
drleon opened this issue Sep 26, 2023 · 1 comment
Closed
2 of 4 tasks

Set with CacheStoreSetOptions doesn't set correct TTL #173

drleon opened this issue Sep 26, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@drleon
Copy link

drleon commented Sep 26, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

this.cacheManager.set(messageCacheKey, messageCount, { ttl: 60 });

Doesn't set correct TTL.

├─ @nestjs/cache-manager@2.1.0
├─ cache-manager@5.2.3

Minimum reproduction code

https://github.com/nestjs/cache-manager/tree/master/lib

Steps to reproduce

No response

Expected behavior

Sets TTL to 60 seconds

Package version

2.1.0

NestJS version

10.0.0

Node.js version

16.18.1

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@drleon drleon added the bug Something isn't working label Sep 26, 2023
@kamilmysliwiec
Copy link
Member

Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.

@nestjs nestjs locked and limited conversation to collaborators Sep 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants