cache-manager icon indicating copy to clipboard operation
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.

Open prd-tai-nguyen opened this issue 1 year ago • 0 comments
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.

  1. Use the cache-manager library in a TypeScript project
  2. Attempt to set a cache value with a ttl option as an object.
  3. Observe the type error that occurs.

Example: image

**Additional Information

  1. "cache-manager": "^5.3.2"
  2. "cache-manager-redis-store": "^2.0.0"
  3. "@nestjs/cache-manager": "^2.1.1"
  4. "@types/cache-manager-redis-store": "^2.0.4"

prd-tai-nguyen avatar Aug 01 '24 03:08 prd-tai-nguyen