NestJs caching with Redis

Sdílet
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

Komentáře • 19

  • @EmmanuelOdii80
    @EmmanuelOdii80 Před 4 měsíci

    Great video!
    I've been stucked on this for a while, especially when setting up different environments

  • @pewdthedark5269
    @pewdthedark5269 Před měsícem

    informative and well structured video !! thank you

  • @Phantom-pu1xn
    @Phantom-pu1xn Před 4 měsíci

    Continue making videos brother. You explain very well.

  • @saurabhtalele1537
    @saurabhtalele1537 Před 7 dny

    🎉🎉

  • @omarps6622
    @omarps6622 Před 4 měsíci

    Very great, thank you and I am eagerly awaiting the best practices lesson😍

    • @Computerix
      @Computerix  Před 4 měsíci +1

      Can't make you wait any longer, so here you go : czcams.com/video/LeYbsTzOctA/video.htmlsi=dZIojWmc0YIs1DWy :))

    • @omarps6622
      @omarps6622 Před 4 měsíci

      ​@@Computerix I thought you didn't create it because it wasn't in the series

  • @DaniqueLomanNL
    @DaniqueLomanNL Před 3 měsíci

    great video, thank you !

  • @hassanmhassan5500
    @hassanmhassan5500 Před 5 měsíci

    keep going bro, that is very helpful👌

    • @Computerix
      @Computerix  Před 5 měsíci +1

      Thank you for your continuous support!

  • @deloni6014
    @deloni6014 Před 4 měsíci

    Thank you

  • @ruhankhandakar
    @ruhankhandakar Před 4 měsíci

    I am using redis, but don't know why ttl is not working, It getting stored for forever. Any possible issue ?

    • @Computerix
      @Computerix  Před 4 měsíci

      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

    • @deloni6014
      @deloni6014 Před 4 měsíci

      when I started using the cache-manager-redis-yet dependency instead of cache-manager-redis-store, the cache worked

  • @nicholas_eras
    @nicholas_eras Před měsícem

    Hi, i keep getting the error TypeError: this.cacheManager.set is not a function, adn console.log(this.cacheManager) returns {}