Implemented ZREMRANGEBYSCORE
This commit is contained in:
@@ -468,4 +468,9 @@ public class Client extends Connection {
|
||||
sendCommand("ZREMRANGEBYRANK", key, String.valueOf(start), String
|
||||
.valueOf(end));
|
||||
}
|
||||
|
||||
public void zremrangeByScore(String key, int start, int end) {
|
||||
sendCommand("ZREMRANGEBYSCORE", key, String.valueOf(start), String
|
||||
.valueOf(end));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -577,4 +577,9 @@ public class Jedis {
|
||||
client.zremrangeByRank(key, start, end);
|
||||
return client.getIntegerReply();
|
||||
}
|
||||
|
||||
public int zremrangeByScore(String key, int start, int end) {
|
||||
client.zremrangeByScore(key, start, end);
|
||||
return client.getIntegerReply();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user