15-SpringBoot之Redis(二)——Redis Cluster

SpringBoot之Redis(二)——Redis Cluster

与整合单机Redis相比,SpringBoot整合Redis Cluster只需修改application.yml配置文件如下:

spring:
  redis:
    cluster:
      nodes: 172.28.65.111:7001,172.28.65.112:7003,172.28.65.113:7006
    database: 0
    timeout: 2000ms
    jedis:
      pool:
        max-active: 300
        max-wait: -1ms
        max-idle: 100
        min-idle: 20

SpringBoot整合单机Redis请参见:https://blog.csdn.net/huangjun0210/article/details/84311078

你可能感兴趣的:(SpringBoot)