Class RedisConfiguration

    • Constructor Detail

      • RedisConfiguration

        @Autowired
        public RedisConfiguration​(RedisConfigurationProperties properties,
                                  HawaiiTime hawaiiTime)
        Constructor.
        Parameters:
        properties - the properties to create the redis beans.
        hawaiiTime - The hawaii time.
    • Method Detail

      • jedisConnectionFactory

        @Bean
        public org.springframework.data.redis.connection.jedis.JedisConnectionFactory jedisConnectionFactory​(org.springframework.data.redis.connection.RedisSentinelConfiguration sentinelConfiguration,
                                                                                                             redis.clients.jedis.JedisPoolConfig poolConfig)
        Create a new JedisConnectionFactory.
        Returns:
        a new JedisConnectionFactory.
      • redisSentinelConfiguration

        @Bean
        public org.springframework.data.redis.connection.RedisSentinelConfiguration redisSentinelConfiguration()
        Creates a new redis sentinel configuration.
        Returns:
        a redis sentinel config.
      • jedisPoolConfig

        @Bean
        public redis.clients.jedis.JedisPoolConfig jedisPoolConfig()
                                                            throws Exception
        Creates a Jedis pool configuration.
        Returns:
        a Jedis pool config.
        Throws:
        Exception