Launch 3 nodes on ports 7379 to 7381 with cluster enabled.

Add command CLUSTER NODES
This commit is contained in:
Jonathan Leibiusky
2013-12-02 09:53:40 -05:00
parent 15891c4117
commit e7e2bfaedf
8 changed files with 203 additions and 70 deletions

View File

@@ -3076,4 +3076,10 @@ public class Jedis extends BinaryJedis implements JedisCommands, MultiKeyCommand
String relpy = client.getBulkReply();
return (relpy != null ? new Double(relpy) : null);
}
public String clusterNodes() {
checkIsInMulti();
client.cluster(Protocol.CLUSTER_NODES);
return client.getBulkReply();
}
}