cache-manager
cache-manager copied to clipboard
There is an issue with the `cache-manager` option is expected to be an object, but the type hint in the library indicates it should be a number.
trafficstars
Describe the bug
There is an issue with the cache-manager option is expected to be an object, but the type hint in the library indicates it should be a number.
How To Reproduce (best to provide workable code or tests!) Please provide code or unit test example that will reproduce the error. If you can't provide code, please provide a detailed description of how to reproduce the error.
- Use the
cache-managerlibrary in a TypeScript project - Attempt to set a cache value with a
ttloption as an object. - Observe the type error that occurs.
Example:
**Additional Information
- "cache-manager": "^5.3.2"
- "cache-manager-redis-store": "^2.0.0"
- "@nestjs/cache-manager": "^2.1.1"
- "@types/cache-manager-redis-store": "^2.0.4"