Class RedisAutoConfiguration

java.lang.Object
org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration

@AutoConfiguration @ConditionalOnClass(org.springframework.data.redis.core.RedisOperations.class) @EnableConfigurationProperties(RedisProperties.class) @Import({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.
Since:
1.0.0
Author:
Dave Syer, Andy Wilkinson, Christian Dupuis, Christoph Strobl, Phillip Webb, EddĂș MelĂ©ndez, Stephane Nicoll, Marco Aust, Mark Paluch
  • Constructor Details

    • RedisAutoConfiguration

      public RedisAutoConfiguration()
  • Method Details

    • redisTemplate

      @Bean @ConditionalOnMissingBean(name="redisTemplate") @ConditionalOnSingleCandidate(org.springframework.data.redis.connection.RedisConnectionFactory.class) public org.springframework.data.redis.core.RedisTemplate<Object,Object> redisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory)
    • stringRedisTemplate

      @Bean @ConditionalOnMissingBean @ConditionalOnSingleCandidate(org.springframework.data.redis.connection.RedisConnectionFactory.class) public org.springframework.data.redis.core.StringRedisTemplate stringRedisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory)