Class RedisConfig


  • @Configuration
    @EnableWebFlux
    @EnableRedisRepositories
    @EnableRedisWebSession(maxInactiveIntervalInSeconds=7200)
    public class RedisConfig
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RedisConfig()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.data.redis.core.ReactiveRedisTemplate<java.lang.String,​java.lang.Object> reactiveRedisTemplate​(org.springframework.data.redis.connection.ReactiveRedisConnectionFactory factory)  
      org.springframework.data.redis.core.RedisTemplate<java.lang.String,​java.lang.Object> redisTemplate​(org.springframework.data.redis.connection.RedisConnectionFactory factory)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RedisConfig

        public RedisConfig()
    • Method Detail

      • redisTemplate

        @Bean
        public org.springframework.data.redis.core.RedisTemplate<java.lang.String,​java.lang.Object> redisTemplate​(org.springframework.data.redis.connection.RedisConnectionFactory factory)
      • reactiveRedisTemplate

        @Bean
        public org.springframework.data.redis.core.ReactiveRedisTemplate<java.lang.String,​java.lang.Object> reactiveRedisTemplate​(org.springframework.data.redis.connection.ReactiveRedisConnectionFactory factory)