update transaction api with all the new commands
This commit is contained in:
@@ -2,6 +2,8 @@ package redis.clients.jedis;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import redis.clients.jedis.BinaryClient.LIST_POSITION;
|
||||
|
||||
public class Transaction extends BinaryTransaction {
|
||||
public Transaction() {
|
||||
}
|
||||
@@ -389,4 +391,20 @@ public class Transaction extends BinaryTransaction {
|
||||
client.sort(key, sortingParameters);
|
||||
return client.getStatusCodeReply();
|
||||
}
|
||||
|
||||
public String setbit(String key, long offset, String value) {
|
||||
client.setbit(key, offset, value);
|
||||
return client.getStatusCodeReply();
|
||||
}
|
||||
|
||||
public String getbit(String key, long offset) {
|
||||
client.getbit(key, offset);
|
||||
return client.getStatusCodeReply();
|
||||
}
|
||||
|
||||
public String linsert(final String key, final LIST_POSITION where,
|
||||
final String pivot, final String value) {
|
||||
client.linsert(key, where, pivot, value);
|
||||
return client.getStatusCodeReply();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user