@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=org.springframework.data.redis.core.RedisOperations.class) @EnableConfigurationProperties(value=RedisProperties.class) @Import(value={org.springframework.boot.autoconfigure.data.redis.LettuceConnectionConfiguration.class,org.springframework.boot.autoconfigure.data.redis.JedisConnectionConfiguration.class}) public class RedisAutoConfiguration extends Object
Auto-configuration
for Spring Data's Redis support.Constructor and Description |
---|
RedisAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.data.redis.core.RedisTemplate<Object,Object> |
redisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory) |
org.springframework.data.redis.core.StringRedisTemplate |
stringRedisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory) |
@Bean @ConditionalOnMissingBean(name="redisTemplate") public org.springframework.data.redis.core.RedisTemplate<Object,Object> redisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory) throws UnknownHostException
UnknownHostException
@Bean @ConditionalOnMissingBean public org.springframework.data.redis.core.StringRedisTemplate stringRedisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory) throws UnknownHostException
UnknownHostException