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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.autoconfigure.cache.CacheManagerCustomizer<org.springframework.cache.caffeine.CaffeineCacheManager>cacheOptions(CacheProperties properties)
-
Constructor Details
-
CacheConfiguration
public CacheConfiguration()
-
-
Method Details
-
cacheOptions
-
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()
-