HybridCache - The New Caching Library in .NET 9

Поделиться
HTML-код
  • Опубликовано: 17 дек 2024

Комментарии • 25

  • @MilanJovanovicTech
    @MilanJovanovicTech  13 часов назад +1

    Want to master Clean Architecture? Go here: bit.ly/3PupkOJ
    Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt

  • @CarrigansGuitarClub
    @CarrigansGuitarClub 11 часов назад

    That is a big improvement on IM and ID

  • @Lunsterful
    @Lunsterful 15 часов назад +1

    You're really good at this, great video.

  • @notXarv
    @notXarv 12 часов назад

    Great content Milan, thanks! 🙏

  • @SeanPhillips-t4z
    @SeanPhillips-t4z 12 часов назад

    So is SlidingExpiration officially not part of the HybridCacheOptions?

  • @SalmanShafiq-y3q
    @SalmanShafiq-y3q 18 часов назад +1

    really love this one ❤
    it would be helpful a video how to use hybrid cache as a caching behavior in Mediator Pipeline behavior in Clean Architecture.

  • @KingOfBlades27
    @KingOfBlades27 18 часов назад

    Really interesting 🤔 Have to investigate this more. The hybrid version indeed seems to be really useful.

  • @Ahmed-ui5wn
    @Ahmed-ui5wn 20 часов назад

    Nice video. Could you please show us how to do this for output caching and how to invalidate it

    • @MilanJovanovicTech
      @MilanJovanovicTech  13 часов назад

      Ok I will try

    • @dfbdtrhgwtwd7149
      @dfbdtrhgwtwd7149 13 часов назад

      Hmm... What do you mean by "output caching"? The term "output caching" applies, for example, to web pages _dynamically_generated_ on the webserver. But there is nothing being generated here. So, it is just caching. Returned value IS the output value!

  • @omjagtap-g6u
    @omjagtap-g6u 19 часов назад

    is it worht learning .net core in 2025 for a 20 yr old in a long run will it be best choice or java spring boot ?

  • @zoltanzorgo
    @zoltanzorgo Час назад

    No, it is not a better option - at least not yet. I have tried to use it in my current project, but I had to abandon this path. It's missing essential features for an L1-L2 cache, (like the backplane) and the API lacks some that would cost nothing to add, like a simple "get." No wonder it is still in preview after .NET 9 was released a while ago. However, it had its impact already: with the push from the good ideas in it (the flags and the tagging), for example, the author of FusionCache improved his library by adding those (check out the preview version). Maybe others will follow suit.

  • @dotnetwithmark
    @dotnetwithmark 20 часов назад +1

    I had always an issue with the cache and is how do you know if the data has changed or not?

    • @деменция-н4п
      @деменция-н4п 20 часов назад +2

      when you change the data you'll know that data changes)

    • @dotnetwithmark
      @dotnetwithmark 19 часов назад +2

      @@деменция-н4п i got it, so you said if in other thread i changed the data i need to add an extra logic to mark that cached information as old o removed it?

    • @omerabay
      @omerabay 16 часов назад

      That's why you configure cache expiration. Data is served from the cache until it expires or becomes invalidated. Once the cache expires, the updated data can be retrieved. If you want to see changes to your data immediately, you would need to check the server every time. However, doing so defeats the purpose of using the cache-aside pattern.

    • @MilanJovanovicTech
      @MilanJovanovicTech  13 часов назад

      Clear the cache when making the update (simplest solution)

    • @dfbdtrhgwtwd7149
      @dfbdtrhgwtwd7149 13 часов назад

      There are multiple strategies for invalidating the cache. None of them is ideal - each one has their own pros and cons. The simplest ones are manual invalidation and time-based invalidation. More advanced are based on some sort of an external agent monitoring and updating the values.

  • @10Totti
    @10Totti 17 часов назад +1

    Best Tutorial!