Class CacheAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration
@Configuration @ConditionalOnClass(org.springframework.cache.CacheManager.class) @ConditionalOnBean(org.springframework.cache.interceptor.CacheAspectSupport.class) @ConditionalOnMissingBean(value=org.springframework.cache.CacheManager.class, name="cacheResolver") @EnableConfigurationProperties(CacheProperties.class) @AutoConfigureAfter({CouchbaseAutoConfiguration.class,HazelcastAutoConfiguration.class,HibernateJpaAutoConfiguration.class,RedisAutoConfiguration.class}) @Import(org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.CacheConfigurationImportSelector.class) public class CacheAutoConfiguration extends Object
Auto-configuration
for the cache abstraction. Creates aCacheManager
if necessary when caching is enabled viaEnableCaching
.Cache store can be auto-detected or specified explicitly via configuration.
- Since:
- 1.3.0
- See Also:
EnableCaching
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
CacheAutoConfiguration.CacheManagerJpaDependencyConfiguration
Constructor Summary
Constructors Constructor Description CacheAutoConfiguration()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.CacheManagerValidator
cacheAutoConfigurationValidator(CacheProperties cacheProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.cache.CacheManager> cacheManager)
CacheManagerCustomizers
cacheManagerCustomizers(org.springframework.beans.factory.ObjectProvider<CacheManagerCustomizer<?>> customizers)
Constructor Detail
CacheAutoConfiguration
public CacheAutoConfiguration()
Method Detail
cacheManagerCustomizers
@Bean @ConditionalOnMissingBean public CacheManagerCustomizers cacheManagerCustomizers(org.springframework.beans.factory.ObjectProvider<CacheManagerCustomizer<?>> customizers)
cacheAutoConfigurationValidator
@Bean public org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.CacheManagerValidator cacheAutoConfigurationValidator(CacheProperties cacheProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.cache.CacheManager> cacheManager)