我正在使用带有缓存抽象支持的Spring Boot连接到redis-server来存储/获取缓存数据 .

我使用以下属性连接到redis-server .

spring.redis.host=localhost
spring.redis.port=6379
spring.redis.password=mypassword
spring.cache.type=redis

我能够成功连接到redis服务器并存储/获取数据 .

为了实现高可用性,决定为redis服务器使用3个节点,1个主节点和2个从节点 .

在这种情况下,我不知道如何提供配置以从我的Spring启动应用程序连接到redis群集 .

Spring Boot是否支持连接到redis群集的任何属性 .

我正在使用 spring 缓存抽象的开箱即用支持,并支持注释 @cacheable.

我将以下2个依赖项添加到我的pom.xml spring-boot-starter-cachespring-boot-starter-data-redis 以及使用 spring boot 1.5.13.

在spring boot中使用spring缓存抽象时是否支持连接到redis集群 .