类 RedisCacheAutoConfiguration
java.lang.Object
com.sie.mbm.mom.framework.cache.config.RedisCacheAutoConfiguration
@Configuration
@AutoConfigureAfter(org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration.class)
@ConditionalOnBean(org.springframework.data.redis.connection.RedisConnectionFactory.class)
@EnableConfigurationProperties(org.springframework.boot.autoconfigure.cache.CacheProperties.class)
@EnableCaching
public class RedisCacheAutoConfiguration
extends Object
扩展redis-cache支持注解cacheName添加超时时间
-
字段概要
字段修饰符和类型字段说明private final org.springframework.boot.autoconfigure.cache.CachePropertiesprivate final org.springframework.boot.autoconfigure.cache.CacheManagerCustomizersprivate final org.springframework.data.redis.cache.RedisCacheConfiguration -
构造器概要
构造器构造器说明RedisCacheAutoConfiguration(org.springframework.boot.autoconfigure.cache.CacheProperties cacheProperties, org.springframework.boot.autoconfigure.cache.CacheManagerCustomizers customizerInvoker, org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.cache.RedisCacheConfiguration> redisCacheConfiguration) -
方法概要
修饰符和类型方法说明org.springframework.data.redis.cache.RedisCacheManagercacheManager(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory, org.springframework.core.io.ResourceLoader resourceLoader) private org.springframework.data.redis.cache.RedisCacheConfigurationdetermineConfiguration(ClassLoader classLoader)
-
字段详细资料
-
cacheProperties
private final org.springframework.boot.autoconfigure.cache.CacheProperties cacheProperties -
customizerInvoker
private final org.springframework.boot.autoconfigure.cache.CacheManagerCustomizers customizerInvoker -
redisCacheConfiguration
@Nullable private final org.springframework.data.redis.cache.RedisCacheConfiguration redisCacheConfiguration
-
-
构造器详细资料
-
RedisCacheAutoConfiguration
RedisCacheAutoConfiguration(org.springframework.boot.autoconfigure.cache.CacheProperties cacheProperties, org.springframework.boot.autoconfigure.cache.CacheManagerCustomizers customizerInvoker, org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.cache.RedisCacheConfiguration> redisCacheConfiguration)
-
-
方法详细资料
-
cacheManager
@Bean @Primary public org.springframework.data.redis.cache.RedisCacheManager cacheManager(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory, org.springframework.core.io.ResourceLoader resourceLoader) -
determineConfiguration
private org.springframework.data.redis.cache.RedisCacheConfiguration determineConfiguration(ClassLoader classLoader)
-