Created
December 5, 2017 16:06
-
-
Save odedia/dbddeb1b48a264e040b26f564f077dba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @EnableRedisHttpSession | |
| public class RedisOperationsSessionRepositoryConfigNoListener { | |
| /** | |
| * Prevent server from subscription to Redis events (see RedisHttpSessionConfiguration) | |
| * @param connectionFactory | |
| * @param messageListener | |
| * @return | |
| */ | |
| @Bean | |
| @ConditionalOnProperty(value="redis.configure.enable.subscription", havingValue="false", matchIfMissing = true) | |
| public RedisMessageListenerContainer redisMessageListenerContainer( | |
| RedisConnectionFactory connectionFactory, | |
| RedisOperationsSessionRepository messageListener) { | |
| return new RedisMessageListenerContainer(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment