add bitset and bitget

This commit is contained in:
Jonathan Leibiusky
2010-12-20 16:26:52 -03:00
parent 586cc9f6d9
commit 0d296a7f1a
6 changed files with 86 additions and 1 deletions

View File

@@ -636,4 +636,12 @@ public class BinaryClient extends Connection {
public void configResetStat() {
sendCommand(CONFIG, Keyword.RESETSTAT.name());
}
public void setbit(byte[] key, int offset, byte[] value) {
sendCommand(SETBIT, key, toByteArray(offset), value);
}
public void getbit(byte[] key, int offset) {
sendCommand(GETBIT, key, toByteArray(offset));
}
}