Adding support for bit commands get/setrange
This commit is contained in:
committed by
Jonathan Leibiusky
parent
e12f655fa3
commit
430601f31e
@@ -79,6 +79,16 @@ public class ShardedJedis extends BinaryShardedJedis implements JedisCommands {
|
||||
return j.getbit(key, offset);
|
||||
}
|
||||
|
||||
public long setrange(String key, long offset, String value) {
|
||||
Jedis j = getShard(key);
|
||||
return j.setrange(key, offset, value);
|
||||
}
|
||||
|
||||
public String getrange(String key, long startOffset, long endOffset) {
|
||||
Jedis j = getShard(key);
|
||||
return j.getrange(key, startOffset, endOffset);
|
||||
}
|
||||
|
||||
public String getSet(String key, String value) {
|
||||
Jedis j = getShard(key);
|
||||
return j.getSet(key, value);
|
||||
|
||||
Reference in New Issue
Block a user