@AutoConfiguration @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") @ConditionalOnSingleCandidate(value=org.springframework.data.redis.connection.RedisConnectionFactory.class) public org.springframework.data.redis.core.RedisTemplate<Object,Object> redisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory)
@Bean @ConditionalOnMissingBean @ConditionalOnSingleCandidate(value=org.springframework.data.redis.connection.RedisConnectionFactory.class) public org.springframework.data.redis.core.StringRedisTemplate stringRedisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory)