Added support for ZCOUNT
This commit is contained in:
@@ -435,4 +435,8 @@ public class Client extends Connection {
|
||||
public void punsubscribe(String... patterns) {
|
||||
sendCommand("PUNSUBSCRIBE", patterns);
|
||||
}
|
||||
|
||||
public void zcount(String key, double min, double max) {
|
||||
sendCommand("ZCOUNT", key, String.valueOf(min), String.valueOf(max));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -545,4 +545,9 @@ public class Jedis {
|
||||
public void psubscribe(JedisPubSub jedisPubSub, String... patterns) {
|
||||
jedisPubSub.proceedWithPatterns(client, patterns);
|
||||
}
|
||||
|
||||
public int zcount(String key, double min, double max) {
|
||||
client.zcount(key, min, max);
|
||||
return client.getIntegerReply();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user