| | |
| | | import org.springframework.data.redis.connection.RedisConnectionFactory; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.data.redis.core.script.DefaultRedisScript; |
| | | import org.springframework.data.redis.listener.RedisMessageListenerContainer; |
| | | import org.springframework.data.redis.serializer.StringRedisSerializer; |
| | | |
| | | /** |
| | |
| | | "end\n" + |
| | | "return tonumber(current);"; |
| | | } |
| | | |
| | | @Bean |
| | | public RedisMessageListenerContainer redisMessageListenerContainer( |
| | | RedisConnectionFactory connectionFactory) { |
| | | RedisMessageListenerContainer container = new RedisMessageListenerContainer(); |
| | | container.setConnectionFactory(connectionFactory); |
| | | return container; |
| | | } |
| | | } |