Class CacheConfiguration

java.lang.Object
org.ehrbase.application.config.cache.CacheConfiguration

@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(CacheProperties.class) @EnableCaching public class CacheConfiguration extends Object
Configuration for EhCache using JCache.
Since:
1.0.0
Author:
Renaud Subiger
  • Constructor Details

    • CacheConfiguration

      public CacheConfiguration()
  • Method Details

    • cacheOptions

      @Bean public CacheOptions cacheOptions(CacheProperties properties)
    • cacheManagerCustomizer

      @Bean @ConditionalOnExpression("T(org.springframework.boot.autoconfigure.cache.CacheType).CAFFEINE.name().equalsIgnoreCase(\"${spring.cache.type}\")") public org.springframework.boot.autoconfigure.cache.CacheManagerCustomizer<org.springframework.cache.caffeine.CaffeineCacheManager> cacheManagerCustomizer()