You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package doesn't have any function to get all cached value at the moment. You have to use redis commands.
If you are using the cache command, you may want to use a prefix for your cache: const cache = new Cache(new Redis({ keyPrefix: "foo:" }))
Then either use cache.redis.keys or cache.redis.scan to get all keys with your prefix, then use them as argument for cache.getManyCache.
If you are using the hashCache command, you can use cache.redis.hgetall and parse the cached values by yourself.
Btw, I wonder why do you need to get cached values without knowing their keys?
Im using this package and i have a doubt. How to get all values saved in cache?
The text was updated successfully, but these errors were encountered: