@Configuration @ConditionalOnClass(value=org.springframework.cache.CacheManager.class) @ConditionalOnBean(value=org.springframework.cache.interceptor.CacheAspectSupport.class) @ConditionalOnMissingBean(value=org.springframework.cache.CacheManager.class, name="cacheResolver") @EnableConfigurationProperties(value=CacheProperties.class) @AutoConfigureBefore(value=HibernateJpaAutoConfiguration.class) @AutoConfigureAfter(value={CouchbaseAutoConfiguration.class,HazelcastAutoConfiguration.class,RedisAutoConfiguration.class}) @Import(value=org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.CacheConfigurationImportSelector.class) public class CacheAutoConfiguration extends Object
Auto-configuration
for the cache abstraction. Creates a
CacheManager
if necessary when caching is enabled via EnableCaching
.
Cache store can be auto-detected or specified explicitly via configuration.
EnableCaching
Modifier and Type | Class and Description |
---|---|
protected static class |
CacheAutoConfiguration.CacheManagerJpaDependencyConfiguration |
Constructor and Description |
---|
CacheAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.CacheManagerValidator |
cacheAutoConfigurationValidator() |
static org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.CacheManagerValidatorPostProcessor |
cacheAutoConfigurationValidatorPostProcessor() |
CacheManagerCustomizers |
cacheManagerCustomizers(org.springframework.beans.factory.ObjectProvider<List<CacheManagerCustomizer<?>>> customizers) |
@Bean @ConditionalOnMissingBean public CacheManagerCustomizers cacheManagerCustomizers(org.springframework.beans.factory.ObjectProvider<List<CacheManagerCustomizer<?>>> customizers)
@Bean @Role(value=2) public static org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.CacheManagerValidatorPostProcessor cacheAutoConfigurationValidatorPostProcessor()
@Bean(name="cacheAutoConfigurationValidator") public org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.CacheManagerValidator cacheAutoConfigurationValidator()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.