Nest.js Caching Tutorial in 15 Minutes (Redis + Unit Testing)

preview_player
Показать описание


Timestamps
00:00:00 Project Setup
00:01:01 Register Cache
00:02:16 CacheManager
00:05:17 CacheInterceptor
00:07:56 Unit Testing
00:10:20 Redis

Рекомендации по теме
Комментарии
Автор

Ok first off, it is clear you’ve mastered nestjs. Second of all, this is an excellent explanation. I will have to watch this short video several times to absorb the info youve dished out. Keep it up man you’ve earned yourself a happy subscriber

AliAliOxenFree
Автор

I am building a new product with nestjs and your videos are gold!

willl
Автор

after days of searching online, you made me get how cache/redis work in 15min
thank you so much
keep making videos like this
cheers

aminemohy
Автор

Every Nestjs developer should watch this 😊. Thanks Micheal

kareemlateefyomi
Автор

Wooh! Great as always. Thanks Michael!

williamx
Автор

Thank you so much, Michael. I couldn't find how to properly mock the cache manager anywhere else. Keep up the good work.

Herzenn
Автор

Excellent tutorial. Really clear and precise explanation. Keep up the good work ❤

giftjeremiah
Автор

Just wish there is a way to subscribe a couple thousand times.

I am grateful

nelsonndukwe
Автор

Perfect video, short and to the point. Thanks❤

behnoudmst
Автор

How to revalidate cache e.g. when some1 made make a get request to get data then a post request updating a database row, and then he immediately make a get request to get data? He will receive a cached data, not the updated one with post.

belkocik
Автор

Great tutorial! Tnx man!

For those who are struggling with cache not working try to downgrade cache-manager pkg to version 4.1.0, current 5.X version is not compatible with NestJS 8.

DjMaSaKre
Автор

Great tutorial
I am waiting more videos from you 🚀
Thank you so much

AbdurrahmanHafez
Автор

Thanks man, so does this mean when I deploy my API I would need to install redis on my server as well? ..

craiggazimbi
Автор

You are the best 👍
Please, more cool videos!

ВикторСмольяков-щв
Автор

how to make a 'unit test' of a controller implementing cacheInterceptor?

dendytbm
Автор

I getting an error at option - store :redisStore

Type 'typeof is not assignable to type '(string | CacheStoreFactory | CacheStore)

ashishkumari-yggn
Автор

Hi @Michael Guay, Do "Auto-caching responses" and "redis store" work together? I tried, somehow, it did not use the redis as the store still?

michaelyao
Автор

can you please help ? how much can i cached data by this method ? and where will those data be placing ?
And what about Redis, which method will be better use for caching between cacheManager and Redis ?
Thx

oleksii.shkulipa
Автор

Does TTL also gets saved as part of Redis? I mean if we restart the server, does the TTL reset or no?

asakurayoh
Автор

Thank you for this video. How do we determine if the Redis cache should be implemented with cache-manager or with a microservice?

justinnoor