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

แชร์
ฝัง

ความคิดเห็น • 41

  • @mguay
    @mguay  8 หลายเดือนก่อน

    Get my highly-rated Udemy courses at a discount here: michaelguay.dev/udemy/

  • @AliAliOxenFree
    @AliAliOxenFree ปีที่แล้ว +15

    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

  • @willl0014
    @willl0014 ปีที่แล้ว +1

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

  • @kareemlateefyomi8690
    @kareemlateefyomi8690 4 หลายเดือนก่อน

    Every Nestjs developer should watch this 😊. Thanks Micheal

  • @aminemohy2064
    @aminemohy2064 2 ปีที่แล้ว +1

    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

  • @Herzenn
    @Herzenn 2 ปีที่แล้ว +1

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

  • @giftjeremiah3312
    @giftjeremiah3312 ปีที่แล้ว +1

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

  • @williamx0
    @williamx0 2 ปีที่แล้ว +1

    Wooh! Great as always. Thanks Michael!

  • @belkocik
    @belkocik 2 หลายเดือนก่อน +1

    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.

  • @DjMaSaKre
    @DjMaSaKre ปีที่แล้ว +1

    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.

  • @behnoudmst
    @behnoudmst ปีที่แล้ว

    Perfect video, short and to the point. Thanks❤

  • @AbdurrahmanHafez
    @AbdurrahmanHafez 2 ปีที่แล้ว

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

  • @craiggazimbi
    @craiggazimbi หลายเดือนก่อน

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

  • @lilililliilil
    @lilililliilil 2 ปีที่แล้ว

    Great video! Man u should create more videos using Nest and Observable like realtime username validation stuff😊

  • @michaelyao9389
    @michaelyao9389 2 ปีที่แล้ว

    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?

  • @EstebanHelgueroCardiff
    @EstebanHelgueroCardiff ปีที่แล้ว

    Hi! Great tutorial! If you are going to use cache for a big app, in which cases would you use It? Would you use Redis or another store system? Thanks

  • @alexeylysenko7380
    @alexeylysenko7380 2 ปีที่แล้ว

    Top material! Thank you!

  • @asakurayoh3909
    @asakurayoh3909 ปีที่แล้ว

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

  • @ashishkumari-yg4gn
    @ashishkumari-yg4gn ปีที่แล้ว

    I getting an error at option - store :redisStore
    Type 'typeof import("C:/sample/complete-rest-api/node_modules/cache-manager-redis-store/dist/index")' is not assignable to type '(string | CacheStoreFactory | CacheStore)

    • @RealStoicArchitect
      @RealStoicArchitect ปีที่แล้ว +1

      use cache-manager-redis-yet instead of cache-manager-redis-store

    • @ashishkumari-yg4gn
      @ashishkumari-yg4gn ปีที่แล้ว

      @@RealStoicArchitect Thank you

  • @justinnoor4915
    @justinnoor4915 2 ปีที่แล้ว

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

  • @dendytbm3113
    @dendytbm3113 2 ปีที่แล้ว

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

  • @oleksiishkulipa1626
    @oleksiishkulipa1626 ปีที่แล้ว

    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

  • @ВикторСмольяков-щ4в
    @ВикторСмольяков-щ4в 2 ปีที่แล้ว

    You are the best 👍
    Please, more cool videos!

  • @caiman1110
    @caiman1110 2 ปีที่แล้ว

    Do you have samples of nest js with @google-cloud/storage?

  • @ՍերինեԲաղդասարյան
    @ՍերինեԲաղդասարյան 11 หลายเดือนก่อน

    Good job. Thanks a lot.

  • @whoknows3679
    @whoknows3679 2 ปีที่แล้ว

    Great video!

  • @huynhthiailinh
    @huynhthiailinh ปีที่แล้ว

    how to config key prefix?

  • @superpupernone
    @superpupernone 2 ปีที่แล้ว +1

    Great tutorial. Thank you.
    And how to cache GraphQL requests?

    • @mguay
      @mguay  2 ปีที่แล้ว +1

      GraphQL isn't supported by the interceptor, so we'll have to cache ourselves using the CacheManager.

    • @superpupernone
      @superpupernone 2 ปีที่แล้ว +1

      @@mguay do you have tutorial about that? (-:

  • @shahariarkabir210
    @shahariarkabir210 ปีที่แล้ว

    Man you are super awesome. 😒💪

  • @IndraPrasetya154
    @IndraPrasetya154 ปีที่แล้ว

    Greate video, thank you so much

  • @dawid_dahl
    @dawid_dahl ปีที่แล้ว

    Thank you so much!

  • @ndaraaa
    @ndaraaa 2 ปีที่แล้ว

    Great tutorial. Can u do a monitoring and logging NestJS app 😁

  • @AntonGorbachevDev
    @AntonGorbachevDev 2 ปีที่แล้ว

    Thx for great video!

    • @mguay
      @mguay  2 ปีที่แล้ว +1

      Glad you liked it!

  • @andresfcuellarc
    @andresfcuellarc 2 ปีที่แล้ว

    Genial Thanks