spring:
redis:
database: 0 # 数据库索引
password: sanmao0426
timeout: 6000ms
redisson:
config: |
sentinelServersConfig:
#哨兵
sentinelAddresses:
- “redis://127.0.0.1:18081”
- “redis://127.0.0.1:18082”
- “redis://127.0.0.1:18083”
masterName: mymaster
database: 0
password: sanmao0426
checkSentinelsList: false
#哨兵增加的配置
sentinel:
nodes: 127.0.0.1:18081,127.0.0.1:18082,127.0.0.1:18083
master: mymaster
password: sanmao0426
#lettuce连接池配置
lettuce:
pool:
max-active: 100
max-idle: 100
min-idle: 50
max-wait: 6000
redisson哨兵配置
于 2022-07-06 13:36:34 首次发布