Relative Content

Tag Archive for springspring-bootspring-mvcspring-cache

Why does CachePut and CacheEvict not work in this example?

In my Java Spring MVC application I have a service that can do crud operations on customers. I use @Cacheable annotation on “loadCustomers” method that works fine but @CachePut annotation on “addOrEditCustomer” method and @CacheEvict annotation on “removeCustomer” method doesn’t work. Is that correct? Why does CachePut and CacheEvict not work in this example?