About 50 results
Open links in new tab
  1. @Cacheable key on multiple method arguments - Stack Overflow

    Dec 28, 2012 · From the spring documentation : @Cacheable(value="bookCache", key="isbn") public Book findBook(ISBN isbn, boolean checkWarehouse, boolean includeUsed) How can I specify …

  2. Using @Cacheable and @CacheEvict in Spring - Stack Overflow

    Aug 24, 2017 · The keys passed to Cacheable and CacheEvict annotations must be the same if they are identifying the same data. If you want to evict your reports cache by the manager's name, you need …

  3. java - Expiry time @cacheable spring boot - Stack Overflow

    Jan 18, 2019 · 11 You cannot specify expiry time with @cacheable notation, since @cacheable does not provide any such configurable option. However different caching vendors providing spring caching …

  4. How do I tell Spring cache not to cache null value in @Cacheable …

    104 Is there a way to specify that if the method returns null value, then don't cache the result in @Cacheable annotation for a method like this?

  5. java - How to test @Cacheable? - Stack Overflow

    May 13, 2017 · I am struggling with testing @Cacheable within a Spring Boot Integration Test. This is my second day learning how to do Integration Tests and all of the examples I have found use older …

  6. Clearing cache from a method annotated with @Cacheable

    Mar 10, 2021 · I have a method annotated with @Cacheable. If an exception is captured inside the method, I want the cache to be cleared. However, it seems that the cache is loaded in an aspect that …

  7. java - What does Spring's @Cacheable do when placed on a method ...

    Sep 17, 2015 · What does Spring's @Cacheable do when placed on a method returning a list? Asked 10 years, 5 months ago Modified 7 years, 5 months ago Viewed 14k times

  8. java - Spring Cache @Cacheable - not working while calling from …

    Spring cache is not working when calling cached method from another method of the same bean. Here is an example to explain my problem in clear way. Configuration: <cache:annotation-driven cache-

  9. java - Spring Cacheable vs CachePut? - Stack Overflow

    Feb 14, 2015 · Example: When you want to update a stale data which is cached, instead of blowing the cache completely. @Cacheable will be executed only once for the given cachekey and subsequent …

  10. java - What is the best way of defining key for @Cacheable annotation ...

    What is the best way of defining key for @Cacheable annotation for Spring Asked 11 years, 6 months ago Modified 5 years, 8 months ago Viewed 35k times