Manually merge #578 to master

This commit is contained in:
Marcos Nils
2014-05-25 15:01:24 -03:00
parent bc9e49d6c9
commit 6106f5bbe6
8 changed files with 185 additions and 3 deletions

View File

@@ -925,7 +925,15 @@ public class BinaryClient extends Connection {
public void getbit(byte[] key, long offset) {
sendCommand(GETBIT, key, toByteArray(offset));
}
public void bitpos(final byte[] key, final boolean value, final BitPosParams params) {
final List<byte[]> args = new ArrayList<byte[]>();
args.add(key);
args.add(toByteArray(value));
args.addAll(params.getParams());
sendCommand(BITPOS, args.toArray(new byte[args.size()][]));
}
public void setrange(byte[] key, long offset, byte[] value) {
sendCommand(SETRANGE, key, toByteArray(offset), value);
}