diff --git a/src/main/java/redis/clients/jedis/JedisCluster.java b/src/main/java/redis/clients/jedis/JedisCluster.java index d0f4edd630..00fb434616 100644 --- a/src/main/java/redis/clients/jedis/JedisCluster.java +++ b/src/main/java/redis/clients/jedis/JedisCluster.java @@ -792,7 +792,7 @@ public Set zrevrangeByScore(final String key, final double max, final do return new JedisClusterCommand>(connectionHandler, timeout, maxRedirections) { @Override public Set execute(Jedis connection) { - return connection.zrevrangeByScore(key, min, max); + return connection.zrevrangeByScore(key, max, min); } }.run(key); } @@ -813,7 +813,7 @@ public Set zrevrangeByScore(final String key, final String max, final St return new JedisClusterCommand>(connectionHandler, timeout, maxRedirections) { @Override public Set execute(Jedis connection) { - return connection.zrevrangeByScore(key, min, max); + return connection.zrevrangeByScore(key, max, min); } }.run(key); } @@ -835,7 +835,7 @@ public Set zrevrangeByScore(final String key, final double max, final do return new JedisClusterCommand>(connectionHandler, timeout, maxRedirections) { @Override public Set execute(Jedis connection) { - return connection.zrevrangeByScore(key, min, max, offset, count); + return connection.zrevrangeByScore(key, max, min, offset, count); } }.run(key); } @@ -855,7 +855,7 @@ public Set zrevrangeByScoreWithScores(final String key, final double max, return new JedisClusterCommand>(connectionHandler, timeout, maxRedirections) { @Override public Set execute(Jedis connection) { - return connection.zrevrangeByScoreWithScores(key, min, max); + return connection.zrevrangeByScoreWithScores(key, max, min); } }.run(key); } @@ -877,7 +877,7 @@ public Set zrevrangeByScore(final String key, final String max, final St return new JedisClusterCommand>(connectionHandler, timeout, maxRedirections) { @Override public Set execute(Jedis connection) { - return connection.zrevrangeByScore(key, min, max, offset, count); + return connection.zrevrangeByScore(key, max, min, offset, count); } }.run(key); } @@ -897,7 +897,7 @@ public Set zrevrangeByScoreWithScores(final String key, final String max, return new JedisClusterCommand>(connectionHandler, timeout, maxRedirections) { @Override public Set execute(Jedis connection) { - return connection.zrevrangeByScoreWithScores(key, min, max); + return connection.zrevrangeByScoreWithScores(key, max, min); } }.run(key); }