Implemented ZREMRANGEBYRANK
This commit is contained in:
@@ -463,4 +463,9 @@ public class Client extends Connection {
|
||||
.valueOf(max), "LIMIT", String.valueOf(offset), String
|
||||
.valueOf(count), "WITHSCORES");
|
||||
}
|
||||
|
||||
public void zremrangeByRank(String key, int start, int end) {
|
||||
sendCommand("ZREMRANGEBYRANK", key, String.valueOf(start), String
|
||||
.valueOf(end));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -572,4 +572,9 @@ public class Jedis {
|
||||
}
|
||||
return set;
|
||||
}
|
||||
|
||||
public int zremrangeByRank(String key, int start, int end) {
|
||||
client.zremrangeByRank(key, start, end);
|
||||
return client.getIntegerReply();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user