Add Redis Cluster support
Introduce configuration options for "spring.redis.cluster.nodes" and "spring.redis.cluster.max-redirects". Properties such as "timeout" and others remain available via "spring.redis.timeout" and do not have to be configured on the cluster itself. See gh-5128
This commit is contained in:
committed by
Stephane Nicoll
parent
d66bc7b1ee
commit
fc22731420
@@ -685,6 +685,8 @@ content into your application; rather pick only the properties that you need.
|
||||
spring.mongodb.embedded.version=2.6.10 # Version of Mongo to use.
|
||||
|
||||
# REDIS ({sc-spring-boot-autoconfigure}/redis/RedisProperties.{sc-ext}[RedisProperties])
|
||||
spring.redis.cluster.nodes= # List of host:port pairs pointing to an intial collection of cluster nodes. Requires at least one node to connect to the cluster.
|
||||
spring.redis.cluster.max-redirects= # Maximum number of redirects to follow when executing commands across the cluster. Leave empty to use the driver specific value.
|
||||
spring.redis.database=0 # Database index used by the connection factory.
|
||||
spring.redis.host=localhost # Redis server host.
|
||||
spring.redis.password= # Login password of the redis server.
|
||||
|
||||
Reference in New Issue
Block a user