diff --git a/src/main/java/redis/clients/jedis/Jedis.java b/src/main/java/redis/clients/jedis/Jedis.java index 400001ac24..02923f7e7b 100644 --- a/src/main/java/redis/clients/jedis/Jedis.java +++ b/src/main/java/redis/clients/jedis/Jedis.java @@ -3877,10 +3877,10 @@ public String clusterNodes() { } @Override - public String clusterReplicas(final String nodeId) { + public List clusterReplicas(final String nodeId) { checkIsInMultiOrPipeline(); client.clusterReplicas(nodeId); - return client.getBulkReply(); + return client.getMultiBulkReply(); } @Override diff --git a/src/main/java/redis/clients/jedis/commands/ClusterCommands.java b/src/main/java/redis/clients/jedis/commands/ClusterCommands.java index bbb8281194..93f4c48993 100644 --- a/src/main/java/redis/clients/jedis/commands/ClusterCommands.java +++ b/src/main/java/redis/clients/jedis/commands/ClusterCommands.java @@ -14,7 +14,7 @@ public interface ClusterCommands { String clusterNodes(); - String clusterReplicas(String nodeId); + List clusterReplicas(String nodeId); String clusterMeet(String ip, int port);