Class CacheAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration
@Configuration(proxyBeanMethods=false)
@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({CouchbaseDataAutoConfiguration.class,HazelcastAutoConfiguration.class,HibernateJpaAutoConfiguration.class,RedisAutoConfiguration.class})
@Import({org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.CacheConfigurationImportSelector.class,org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.CacheManagerEntityManagerFactoryDependsOnPostProcessor.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.
- Since:
- 1.3.0
- Author:
- Stephane Nicoll
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.CacheManagerValidator
cacheAutoConfigurationValidator
(CacheProperties cacheProperties, ObjectProvider<CacheManager> cacheManager) cacheManagerCustomizers
(ObjectProvider<CacheManagerCustomizer<?>> customizers)
-
Constructor Details
-
CacheAutoConfiguration
public CacheAutoConfiguration()
-
-
Method Details
-
cacheManagerCustomizers
@Bean @ConditionalOnMissingBean public CacheManagerCustomizers cacheManagerCustomizers(ObjectProvider<CacheManagerCustomizer<?>> customizers) -
cacheAutoConfigurationValidator
@Bean public org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.CacheManagerValidator cacheAutoConfigurationValidator(CacheProperties cacheProperties, ObjectProvider<CacheManager> cacheManager)
-