Use a List rather than an array for consistency

Closes gh-11029
This commit is contained in:
Stephane Nicoll 2017-11-17 09:14:45 +01:00
parent e34c2b0c01
commit 5728d9614e
2 changed files with 5 additions and 5 deletions

View File

@ -266,9 +266,9 @@ public class RedisProperties {
private String master;
/**
* Nodes as host:port pairs.
* Comma-separated list of "host:port" pairs.
*/
private String[] nodes;
private List<String> nodes;
public String getMaster() {
return this.master;
@ -278,11 +278,11 @@ public class RedisProperties {
this.master = master;
}
public String[] getNodes() {
public List<String> getNodes() {
return this.nodes;
}
public void setNodes(String[] nodes) {
public void setNodes(List<String> nodes) {
this.nodes = nodes;
}

View File

@ -869,7 +869,7 @@ content into your application; rather pick only the properties that you need.
spring.redis.password= # Login password of the redis server.
spring.redis.port=6379 # Redis server port.
spring.redis.sentinel.master= # Name of Redis server.
spring.redis.sentinel.nodes= # Comma-separated list of host:port pairs.
spring.redis.sentinel.nodes= # Comma-separated list of "host:port" pairs.
spring.redis.ssl=false # Enable SSL support.
spring.redis.timeout=0 # Connection timeout in milliseconds.