Top "Spring-cache" questions

Spring cache provides a Cache and CacheManager abstraction with several implementations including support for ehcache and JSR-107 providers.

Expiry time @cacheable spring boot

I have implemented a cache and now I want to add an expiry time. How can I set an expiry …

java caching spring-cache
ehcache configuration in Spring framework

I am trying to load some context from an RSS feed and pass it as a cache to the client …

spring ehcache spring-4 spring-cache
Spring @Cacheable default TTL

I generally use the @Cacheable with a cache config in my spring-boot app and set specific TTL (time to live) …

spring spring-boot caching spring-cache
Spring cache @Cacheable method ignored when called from within the same class

I'm trying to call a @Cacheable method from within the same class: @Cacheable(value = "defaultCache", key = "#id") public Person findPerson(…

spring caching spring-cache
How to test Spring's declarative caching support on Spring Data repositories?

I have developed a Spring Data repository, MemberRepository interface, that extends org.springframework.data.jpa.repository.JpaRepository. MemberRepository has a …

spring testing spring-data spring-data-jpa spring-cache
How to load @Cache on startup in spring?

I'm using spring-cache to improve database queries, which works fine as follows: @Bean public CacheManager cacheManager() { return new ConcurrentMapCacheManager("books"); } @…

java spring spring-cache
Spring Boot - How to disable @Cacheable during development?

I'm looking for 2 things: How to disable all caching during development with Spring boot "dev" profile. There doesn't seam to …

java spring spring-boot spring-el spring-cache
Spring Cache: Evict multiple caches

I'm using Spring Cache abstraction and I have multiple caches defined. Sometimes, when data changes, I want to evict more …

java spring spring-cache
Enabling Redis cache in spring boot

I have following configuration on my spring boot project. @SpringBootApplication @EnableTransactionManagement @EnableCaching @EnableScheduling @EnableAsync public class Application { String redisHost = "localhost"; …

spring-boot redis spring-data-redis spring-cache
How to have multiple cache manager configuration in spring cache java

I want to have multiple spring cache managers configured in my web-application and I would be able to use different …

java spring caching spring-boot spring-cache