add public setrange and getrange

This commit is contained in:
Jonathan Leibiusky
2011-02-28 15:59:10 -03:00
parent 80d2f9d103
commit 121af74972

View File

@@ -2926,12 +2926,12 @@ public class BinaryJedis implements BinaryJedisCommands {
return client.getIntegerReply();
}
private long setrange(byte[] key, long offset, byte[] value) {
public 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) {
public String getrange(byte[] key, long startOffset, long endOffset) {
client.getrange(key, startOffset, endOffset);
return client.getBulkReply();
}