Closed nicosebey closed 2 years ago
I would first make sure the 'single store' example is working (see https://github.com/dabroek/node-cache-manager-ioredis#single-store) with your redis config.
You were right again bryan. the problem was with node-cache-manager-ioredis but i realize that we didnt need it. We could just create a multiple cache with cache-manager. Now I ve 2 questions about this. 1) I am able to select in which cache level I want to save any data? 2) There is any method to invalidate any cache level (clean it) ? Thanks again!
Do you mean you'd make a multi-cache with two memory caches?
There is no way to specify which level to save to and there's no way to invalidate data at any particular level either. You can use the del
method to delete at all levels though. You can always use a particular cache directly though, bypassing the multi-cache altogether.
Thanks bryan making some tests I realized about what you are saying, I also found the reset
method to reset all the cache!
Thank you for everything.
No problem!
Hi bryan im back. Now im trying to get my cache with multiples levels using cache-manager-ioredis (https://github.com/dabroek/node-cache-manager-ioredis#readme) but after setting it up and on the .wrap it get freeze. this is mi code. cacheManager.js
calling the endpoint
I hope you could figure out what's going on.
Nico