implemented bitcount and bitop commands for Redis 2.6
This commit is contained in:
@@ -703,4 +703,16 @@ public class Client extends BinaryClient implements Commands {
|
||||
public void objectEncoding(String key) {
|
||||
objectEncoding(SafeEncoder.encode(key));
|
||||
}
|
||||
|
||||
public void bitcount(final String key) {
|
||||
bitcount(SafeEncoder.encode(key));
|
||||
}
|
||||
|
||||
public void bitcount(final String key, long start, long end) {
|
||||
bitcount(SafeEncoder.encode(key), start, end);
|
||||
}
|
||||
|
||||
public void bitop(BitOP op, final String destKey, String... srcKeys) {
|
||||
bitop(op, SafeEncoder.encode(destKey), srcKeys);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user