Adding support for bit commands get/setrange
This commit is contained in:
committed by
Jonathan Leibiusky
parent
e12f655fa3
commit
430601f31e
@@ -413,6 +413,16 @@ public class Transaction extends BinaryTransaction {
|
||||
return client.getStatusCodeReply() == "1";
|
||||
}
|
||||
|
||||
public long setrange(String key, long offset, String value) {
|
||||
client.setrange(key, offset, value);
|
||||
return client.getIntegerReply();
|
||||
}
|
||||
|
||||
public String getrange(String key, long startOffset, long endOffset) {
|
||||
client.getrange(key, startOffset, endOffset);
|
||||
return client.getBulkReply();
|
||||
}
|
||||
|
||||
public String linsert(final String key, final LIST_POSITION where,
|
||||
final String pivot, final String value) {
|
||||
client.linsert(key, where, pivot, value);
|
||||
|
||||
Reference in New Issue
Block a user