NestJs caching with Redis
Vložit
- čas přidán 30. 06. 2024
- We learn how to implement caching properly using the cache manager package in NestJs, and using the redis store to cache data in redis.
Buy me a coffee at : buymeacoffee.com/computerix
Timestamps:
-----------
0:00- Why use caching ?
1:02- Implementing caching in NestJs
6:28- Using the Cache Interceptor
9:19- Using the Redis Cache Store
Great video!
I've been stucked on this for a while, especially when setting up different environments
Glad I was of help!
informative and well structured video !! thank you
You're welcome!
Continue making videos brother. You explain very well.
Thank you! I will
🎉🎉
Very great, thank you and I am eagerly awaiting the best practices lesson😍
Can't make you wait any longer, so here you go : czcams.com/video/LeYbsTzOctA/video.htmlsi=dZIojWmc0YIs1DWy :))
@@Computerix I thought you didn't create it because it wasn't in the series
great video, thank you !
You're welcome !
keep going bro, that is very helpful👌
Thank you for your continuous support!
Thank you
I am using redis, but don't know why ttl is not working, It getting stored for forever. Any possible issue ?
if you're using useFactory, and returning the redis store object, then you'd need to set the TTL inside of that object, instead of returning it directly as a parameter alongside the store
when I started using the cache-manager-redis-yet dependency instead of cache-manager-redis-store, the cache worked
Hi, i keep getting the error TypeError: this.cacheManager.set is not a function, adn console.log(this.cacheManager) returns {}