@Configuration @EnableCaching(mode=ASPECTJ) public class CacheConfiguration extends Object
| 构造器和说明 |
|---|
CacheConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.springframework.data.redis.cache.RedisCacheConfiguration |
getRedisCacheConfigurationWithTtl(String appName,
Integer seconds) |
org.springframework.data.redis.core.StringRedisTemplate |
redisCacheTemplate(org.springframework.data.redis.connection.RedisConnectionFactory factory) |
org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory |
redisConnectionFactory() |
org.springframework.cache.interceptor.KeyGenerator |
simpleKeyGenerator() |
org.springframework.cache.interceptor.KeyGenerator |
simpleKeyPrefixGenerator() |
@Bean(value="redisCacheFactory") @Primary public org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory redisConnectionFactory()
@Bean(value="redisCacheTemplate")
@Primary
public org.springframework.data.redis.core.StringRedisTemplate redisCacheTemplate(@Qualifier(value="redisCacheFactory")
org.springframework.data.redis.connection.RedisConnectionFactory factory)
@Bean public org.springframework.cache.interceptor.KeyGenerator simpleKeyGenerator()
@Bean public org.springframework.cache.interceptor.KeyGenerator simpleKeyPrefixGenerator()
Copyright © 2020. All rights reserved.