setbit and getbit receive long offset in BinaryJedis
This commit is contained in:
@@ -2909,7 +2909,7 @@ public class BinaryJedis implements BinaryJedisCommands {
|
|||||||
* @param value
|
* @param value
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Long setbit(byte[] key, int offset, byte[] value) {
|
public Long setbit(byte[] key, long offset, byte[] value) {
|
||||||
client.setbit(key, offset, value);
|
client.setbit(key, offset, value);
|
||||||
return client.getIntegerReply();
|
return client.getIntegerReply();
|
||||||
}
|
}
|
||||||
@@ -2921,7 +2921,7 @@ public class BinaryJedis implements BinaryJedisCommands {
|
|||||||
* @param offset
|
* @param offset
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Long getbit(byte[] key, int offset) {
|
public Long getbit(byte[] key, long offset) {
|
||||||
client.getbit(key, offset);
|
client.getbit(key, offset);
|
||||||
return client.getIntegerReply();
|
return client.getIntegerReply();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user