java Redis sentinel使用spring boot设置
我有一个主设备和两个从设备上的redis,每台服务器上都有一个sentinel进程在端口26379上运行
我想知道如何将sentinel配置为master,以便在应用程序中添加以下内容。属性文件
spring.redis.sentinel.master=
spring.redis.sentinel.nodes=
我有redis server 2.8.19和spring boot 1.3.4,spring data redis 1.6.4 JAR
# 1 楼答案
根据Add support for Redis Sentinel Configuration GitHub request
我希望这能帮助你