Add automatic discovery of cluster nodes
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package redis.clients.jedis;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.IllegalFormatException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
@@ -1192,4 +1194,8 @@ public class JedisCluster implements JedisCommands, BasicCommands {
|
||||
}
|
||||
}.run();
|
||||
}
|
||||
|
||||
public Map<String, JedisPool> getClusterNodes() {
|
||||
return connectionHandler.getNodes();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user