Binary versions of ZREVRANGEBYSCORE methods, some code cleanup
This commit is contained in:
@@ -412,10 +412,6 @@ public class Client extends BinaryClient implements Commands {
|
||||
final double max) {
|
||||
zrangeByScore(SafeEncoder.encode(key), min, max);
|
||||
}
|
||||
public void zrevrangeByScore(final String key, final double max,
|
||||
final double min) {
|
||||
zrevrangeByScore(SafeEncoder.encode(key), max, min);
|
||||
}
|
||||
|
||||
public void zrangeByScore(final String key, final String min,
|
||||
final String max) {
|
||||
@@ -427,25 +423,39 @@ public class Client extends BinaryClient implements Commands {
|
||||
final double max, final int offset, int count) {
|
||||
zrangeByScore(SafeEncoder.encode(key), min, max, offset, count);
|
||||
}
|
||||
public void zrevrangeByScore(final String key, final double max,
|
||||
final double min, final int offset, int count) {
|
||||
zrevrangeByScore(SafeEncoder.encode(key), max, min, offset, count);
|
||||
}
|
||||
|
||||
public void zrangeByScoreWithScores(final String key, final double min,
|
||||
final double max) {
|
||||
zrangeByScoreWithScores(SafeEncoder.encode(key), min, max);
|
||||
}
|
||||
public void zrevrangeByScoreWithScores(final String key, final double max,
|
||||
final double min) {
|
||||
zrevrangeByScoreWithScores(SafeEncoder.encode(key), max, min);
|
||||
}
|
||||
|
||||
public void zrangeByScoreWithScores(final String key, final double min,
|
||||
final double max, final int offset, final int count) {
|
||||
zrangeByScoreWithScores(SafeEncoder.encode(key), min, max, offset,
|
||||
count);
|
||||
}
|
||||
|
||||
public void zrevrangeByScore(final String key, final double max,
|
||||
final double min) {
|
||||
zrevrangeByScore(SafeEncoder.encode(key), max, min);
|
||||
}
|
||||
|
||||
public void zrevrangeByScore(final String key, final String max,
|
||||
final String min) {
|
||||
zrevrangeByScore(SafeEncoder.encode(key), SafeEncoder.encode(max),
|
||||
SafeEncoder.encode(min));
|
||||
}
|
||||
|
||||
public void zrevrangeByScore(final String key, final double max,
|
||||
final double min, final int offset, int count) {
|
||||
zrevrangeByScore(SafeEncoder.encode(key), max, min, offset, count);
|
||||
}
|
||||
|
||||
public void zrevrangeByScoreWithScores(final String key, final double max,
|
||||
final double min) {
|
||||
zrevrangeByScoreWithScores(SafeEncoder.encode(key), max, min);
|
||||
}
|
||||
|
||||
public void zrevrangeByScoreWithScores(final String key, final double max,
|
||||
final double min, final int offset, final int count) {
|
||||
zrevrangeByScoreWithScores(SafeEncoder.encode(key), max, min, offset,
|
||||
|
||||
Reference in New Issue
Block a user