目录
配置
如下配置需要添加Redis依赖:添加Redis依赖
spring:
redis:
# 单击单实例模式
# database: 0 # 第几个数据库
# host: 192.168.84.146 # 主机名
# port: 6379 # 端口
# password: root # 密码
# 哨兵模式
# database: 1
# password: root
# sentinel:
# master: mymaster
# nodes: 192.168.84.146:26379,192.168.84.147:26379,192.168.84.148:26379
# 集群模式
password: root
cluster:
nodes: 192.168.84.160:6379,192.168.84.157:6379,192.168.84.156:6379,192.168.84.158:6379,192.168.84.159:6379,192.168.84.155:6379