getbit and setbit have now long offset

This commit is contained in:
Jonathan Leibiusky
2011-01-20 11:50:38 -03:00
parent a13aff5421
commit 1857dd3413
3 changed files with 6 additions and 6 deletions

View File

@@ -2604,7 +2604,7 @@ public class Jedis extends BinaryJedis implements JedisCommands {
* @param value
* @return
*/
public Long setbit(String key, int offset, String value) {
public Long setbit(String key, long offset, String value) {
client.setbit(key, offset, value);
return client.getIntegerReply();
}
@@ -2616,7 +2616,7 @@ public class Jedis extends BinaryJedis implements JedisCommands {
* @param offset
* @return
*/
public Long getbit(String key, int offset) {
public Long getbit(String key, long offset) {
client.getbit(key, offset);
return client.getIntegerReply();
}