Adding support for bit commands get/setrange

This commit is contained in:
Eric Hauser
2011-02-22 22:41:46 -05:00
committed by Jonathan Leibiusky
parent e12f655fa3
commit 430601f31e
9 changed files with 73 additions and 2 deletions

View File

@@ -2927,6 +2927,16 @@ public class BinaryJedis implements BinaryJedisCommands {
return client.getIntegerReply();
}
private long setrange(byte[] key, long offset, byte[] value) {
client.setrange(key, offset, value);
return client.getIntegerReply();
}
private String getrange(byte[] key, long startOffset, long endOffset) {
client.getrange(key, startOffset, endOffset);
return client.getBulkReply();
}
public Long publish(byte[] channel, byte[] message) {
client.publish(channel, message);
return client.getIntegerReply();