This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener). # Fixed URLs ## Fixed Success These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended. * [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to: https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200). * [ ] http://www.apache.org/licenses/LICENSE-2.0 with 426 occurrences migrated to: https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
Spring Data Redis - Sentinel Examples
This project contains samples of Sentinel specific features of Spring Data Redis.
Support for Sentinel
@Configuration
public class RedisSentinelApplicationConfig {
static final RedisSentinelConfiguration SENTINEL_CONFIG = new RedisSentinelConfiguration().master("mymaster") //
.sentinel("localhost", 26379) //
.sentinel("localhost", 26380) //
.sentinel("localhost", 26381);
@Bean
public RedisConnectionFactory connectionFactory() {
return new LettuceConnectionFactory(sentinelConfig(), LettuceClientConfiguration.defaultConfiguration());
}
@Bean
public RedisSentinelConfiguration sentinelConfig() {
return SENTINEL_CONFIG;
}
}