How to Integrate Spring Cache With Ehcache 3 In A Spring Boot Application

Ғылым және технология

In this video, we will be exploring how to integrate Spring Cache with Ehcache 3 in a Spring Boot application and use it to understand the concepts of Spring Cache.
You can also read about this along with the GitHub link to the code: refactorfirst.com/spring-boot...
You can support me by buying me a coffee 😄 : www.buymeacoffee.com/amrutprabhu
Gear I use:
Sony Alpha a6000 : Amazon India : amzn.to/3RM7QMJ
Germany : amzn.to/3G1Iw24
US : amzn.to/3cpKZ9E
UK : amzn.to/3J0g5Ry
Razer Microphone : Amazon India : amzn.to/3aQxI9C
Germany : amzn.to/3DRRrAh
US : amzn.to/3ITKu3Q
UK : amzn.to/3v3RHbU
------Chapters----
00:00 - Introduction
00:31 - Creating An Application
01:30 - Code Walkthrough
02:02 - Cache Put
03:07 - Cachable
03:43 - Checking Cachable Output
04:44 - Checking CachePut Output
05:39 - Cacheble vs CachePut
07:33 - Understanding Cachable vs CachePut
07:53 - CacheEvict
08:36 - Using CacheEvict
10:20 - Integrating Ehcache 3
10:40 - Configuring Ehcache 3
11:40 - Starting application with Ehcache 3
13:09 - Conclusion
Music Credits:-
Sappheiros - Affection
----------------------------
Social Media
KZread / sappheiros
Spotify goo.gl/hE9MDJ
Twitter SappheirosMusic
Instagram sappheirosmusic
Facebook SappheirosMusic
Discord discord.gg/Pk87yN9
/ affection
--------------------------------------------------

Пікірлер: 10

  • @debbh274
    @debbh274 Жыл бұрын

    Nice one. Short and Sweet.

  • @boktzyadventures7392
    @boktzyadventures73922 жыл бұрын

    Thanks!

  • @tusharf3837
    @tusharf38372 жыл бұрын

    Nice bro.. 👌

  • @nikesbzoomtre1
    @nikesbzoomtre1 Жыл бұрын

    In the first half of your video you didn’t use a cache manager. Why is it needed at the end? Also, is cache manager the same as an ehCache.xml file?

  • @Abhay.Bhandari
    @Abhay.Bhandari2 ай бұрын

    I have followed same steps but in my case generatePerson method is called again and again. Result is not getting stored in cache probably. Even there is no error in console. Why? What are the possibilities for where I am doing wrong?

  • @sm6711
    @sm6711 Жыл бұрын

    Any reason for using Javax in cache manager config?

  • @saravanakumara5602
    @saravanakumara56022 жыл бұрын

    Good bro. In the Realtime, data in the cache and its expire time is 24 hours. Meanwhile value got changed for same key or same input. Then what will happen. ?

  • @RefactorFirst

    @RefactorFirst

    2 жыл бұрын

    Since the data is cached for 24 hours, the value will remain as is. It wont update it untill the ttl expires. Once the ttl expires then it will allow the function call to proceed thereby updating the cache with a new value.

  • @qlyde1
    @qlyde12 жыл бұрын

    You should probably explicitly mention that the eviction annotation will not work unless in another class than the cacheable annotation. At least that is what I found.

  • @RefactorFirst

    @RefactorFirst

    2 жыл бұрын

    I would say that it should work in a different class also. Because it all depends on the cache name. Using the same cache name should work..

Келесі