Java 用于Spring引导的Redis群集配置

Java 用于Spring引导的Redis群集配置,java,spring-boot,redis,Java,Spring Boot,Redis,我将为我的spring boot应用程序添加一个redis集群。我发现以下属性需要放在application.property文件下才能实现 spring.redis.cluster.max-redirects= # Maximum number of redirects to follow when executing commands across the cluster. spring.redis.cluster.nodes= # Comma-separated list of "host

我将为我的spring boot应用程序添加一个redis集群。我发现以下属性需要放在application.property文件下才能实现

spring.redis.cluster.max-redirects= # Maximum number of redirects to follow when executing commands across the cluster.
spring.redis.cluster.nodes= # Comma-separated list of "host:port" pairs to bootstrap from.
什么是最大重定向,我应该设置什么值

另外,redis池在redis集群中的行为如何?对于以下redis池值,redis集群与单个redis节点相比有什么不同吗

spring.redis.pool.max-active
spring.redis.pool.max-idle
spring.redis.pool.max-wait
spring.redis.pool.min-idle

您可以保留未配置的
max重定向


使用Jedis的Redis集群支持考虑了spring.Redis.pool中的池设置…
,没有单独的配置。这些设置允许您配置一次池,并在不同的操作模式(独立、Sentinel、群集)下使用池。

每个属性都包含一个说明,请查看
spring.redis.Cluster.max重定向的文档。