update transaction api with all the new commands

This commit is contained in:
Jonathan Leibiusky
2011-01-20 12:18:25 -03:00
parent 1857dd3413
commit 66fc6be729
7 changed files with 72 additions and 4 deletions

View File

@@ -3,6 +3,8 @@ package redis.clients.jedis;
import java.util.List;
import java.util.Map;
import redis.clients.jedis.BinaryClient.LIST_POSITION;
public class BinaryTransaction {
protected Client client = null;
protected boolean inTransaction = true;
@@ -430,4 +432,20 @@ public class BinaryTransaction {
inTransaction = false;
return client.getStatusCodeReply();
}
public String setbit(byte[] key, int offset, byte[] value) {
client.setbit(key, offset, value);
return client.getStatusCodeReply();
}
public String getbit(byte[] key, int offset) {
client.getbit(key, offset);
return client.getStatusCodeReply();
}
public String linsert(final byte[] key, final LIST_POSITION where,
final byte[] pivot, final byte[] value) {
client.linsert(key, where, pivot, value);
return client.getStatusCodeReply();
}
}