类 AradinRedisManagerAutoConfiguration
java.lang.Object
cn.aradin.spring.redis.starter.AradinRedisManagerAutoConfiguration
@Configuration
@ConditionalOnClass(org.springframework.cache.CacheManager.class)
@ConditionalOnBean(org.springframework.cache.interceptor.CacheAspectSupport.class)
@EnableConfigurationProperties(RedisCacheManagerProperties.class)
@AutoConfigureAfter(AradinRedisAutoConfiguration.class)
public class AradinRedisManagerAutoConfiguration
extends Object
CacheAutoConfiguration
通过SelectImporter
引入所有cachetype的默认Configuration,然后根据各个Configuration的Condition决定初始化哪一个
org.springframework.boot.autoconfigure.cache.RedisCacheConfiguration- 作者:
- liuda
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明cn.aradin.spring.redis.starter.AradinRedisManagerAutoConfiguration.CacheManagerValidatorcacheAutoConfigurationValidator(RedisCacheManagerProperties redisCacheManagerProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.cache.CacheManager> cacheManager) org.springframework.data.redis.cache.RedisCacheManagercacheManager(org.springframework.data.redis.cache.RedisCacheWriter redisCacheWriter, org.springframework.core.io.ResourceLoader resourceLoader, RedisCacheManagerProperties redisCacheManagerProperties, org.springframework.boot.autoconfigure.cache.CacheManagerCustomizers cacheManagerCustomizers) 原生实现,由于原生存在对CacheManager的单实例限制org.springframework.boot.autoconfigure.cache.CacheManagerCustomizerscacheManagerCustomizers(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.cache.CacheManagerCustomizer<?>> customizers) org.springframework.data.redis.cache.RedisCacheWriterredisCacheWriter(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory, RedisCacheManagerProperties redisCacheManagerProperties)
-
字段详细资料
-
CACHE_MANAGER
- 另请参阅:
-
-
构造器详细资料
-
AradinRedisManagerAutoConfiguration
public AradinRedisManagerAutoConfiguration()
-
-
方法详细资料
-
cacheManagerCustomizers
@Bean @ConditionalOnMissingBean public org.springframework.boot.autoconfigure.cache.CacheManagerCustomizers cacheManagerCustomizers(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.cache.CacheManagerCustomizer<?>> customizers) -
cacheAutoConfigurationValidator
@Bean public cn.aradin.spring.redis.starter.AradinRedisManagerAutoConfiguration.CacheManagerValidator cacheAutoConfigurationValidator(RedisCacheManagerProperties redisCacheManagerProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.cache.CacheManager> cacheManager) -
redisCacheWriter
@ConditionalOnMissingBean(name="redisCacheWriter") @Bean(name="redisCacheWriter") public org.springframework.data.redis.cache.RedisCacheWriter redisCacheWriter(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory, RedisCacheManagerProperties redisCacheManagerProperties) -
cacheManager
@Bean @Primary public org.springframework.data.redis.cache.RedisCacheManager cacheManager(org.springframework.data.redis.cache.RedisCacheWriter redisCacheWriter, org.springframework.core.io.ResourceLoader resourceLoader, RedisCacheManagerProperties redisCacheManagerProperties, org.springframework.boot.autoconfigure.cache.CacheManagerCustomizers cacheManagerCustomizers) 原生实现,由于原生存在对CacheManager的单实例限制- 参数:
redisCacheWriter- redisCacheWriterresourceLoader- resourceLoaderredisCacheManagerProperties- redisCacheManagerPropertiescacheManagerCustomizers- cacheManagerCustomizers- 返回:
- The primary cache Manager
-