@AutoConfigureBefore(value=CacheInitConfig.class) @Configuration @EnableCaching public class CachingConfig extends org.springframework.cache.annotation.CachingConfigurerSupport implements org.springframework.context.ApplicationEventPublisherAware
| 构造器和说明 |
|---|
CachingConfig(org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory lettuceConnectionFactory,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.cache.CacheManager |
cacheManager() |
org.springframework.cache.caffeine.CaffeineCacheManager |
caffeineCacheManager() |
org.springframework.cache.interceptor.CacheErrorHandler |
errorHandler() |
org.springframework.data.redis.cache.RedisCacheManager.RedisCacheManagerBuilder |
redisCacheManagerBuilder() |
org.springframework.data.redis.core.RedisTemplate<java.lang.String,java.lang.Object> |
redisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory) |
org.springframework.data.redis.listener.RedisMessageListenerContainer |
refreshingStrategyRedisMessageListenerContainer(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory,
org.springframework.data.redis.core.RedisTemplate<java.lang.String,java.lang.Object> redisTemplate,
org.springframework.data.redis.listener.ChannelTopic topic) |
MessagePublisher |
refreshingStrategyRedisPublisher(org.springframework.data.redis.core.StringRedisTemplate redisTemplate,
org.springframework.data.redis.listener.ChannelTopic topic) |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
org.springframework.data.redis.listener.ChannelTopic |
topic() |
public CachingConfig(org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory lettuceConnectionFactory,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher 在接口中 org.springframework.context.ApplicationEventPublisherAware@Bean(value="caffeineCacheManager") public org.springframework.cache.caffeine.CaffeineCacheManager caffeineCacheManager()
@Bean(value="redisCacheManagerBuilder") public org.springframework.data.redis.cache.RedisCacheManager.RedisCacheManagerBuilder redisCacheManagerBuilder()
@Bean public org.springframework.data.redis.core.RedisTemplate<java.lang.String,java.lang.Object> redisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
@Primary @Bean public org.springframework.cache.CacheManager cacheManager()
cacheManager 在接口中 org.springframework.cache.annotation.CachingConfigurercacheManager 在类中 org.springframework.cache.annotation.CachingConfigurerSupportpublic org.springframework.cache.interceptor.CacheErrorHandler errorHandler()
errorHandler 在接口中 org.springframework.cache.annotation.CachingConfigurererrorHandler 在类中 org.springframework.cache.annotation.CachingConfigurerSupport@Bean(value="refreshingStrategyTopic") public org.springframework.data.redis.listener.ChannelTopic topic()
@Bean(value="refreshingStrategyRedisMessageListenerContainer")
public org.springframework.data.redis.listener.RedisMessageListenerContainer refreshingStrategyRedisMessageListenerContainer(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory,
org.springframework.data.redis.core.RedisTemplate<java.lang.String,java.lang.Object> redisTemplate,
@Qualifier(value="refreshingStrategyTopic")
org.springframework.data.redis.listener.ChannelTopic topic)
@Bean(value="refreshingStrategyRedisPublisher") public MessagePublisher refreshingStrategyRedisPublisher(org.springframework.data.redis.core.StringRedisTemplate redisTemplate, @Qualifier(value="refreshingStrategyTopic") org.springframework.data.redis.listener.ChannelTopic topic)