jedis - Redis通过Sentinel可以实现主从切换,客户端怎么实现自动切换?
为情所困
为情所困 2017-04-25 09:03:35
0
1
800

假设A是主,B是从,在一次failover后,A变成从,B变成主
怎么实现客户端自动从连接B变成连接A?用的是Jedis

为情所困
为情所困

reply all(1)
PHPzhong

Use JedisSentinelPool class

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!