[英]Does Spring Data Redis (1.3.2.RELEASE) support JedisSentinelPool of jedis?
Spring Data Redis(1.3.2.RELEASE)是否支持jedis的JedisSentinelPool?
也許它不支持,誰會給我答案?
如果不支持,該怎么辦?
Spring Data Redis 1.4中增加了對Redis Sentinel的支持。 它將在即將推出的Evans RC1中 ,允許配置JedisConnectionFactory
以使用JedisSentinelPool
。
RedisSentinelConfiguration sentinelConfig = new RedisSentinelConfiguration()
.master("mymaster")
.sentinel("127.0.0.1", 26379)
.sentinel("127.0.0.1", 26380);
JedisConnectionFactory factory = new JedisConnectionFactory(sentinelConfig);
factory.afterPropertiesSet();
您已經可以查看當前的快照構建:
compile(group: 'org.springframework.data', name: 'spring-data-redis', version: '1.4.0.BUILD-SNAPSHOT')
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.