hincr, incr and decr long support

This commit is contained in:
Jonathan Leibiusky
2010-12-10 17:21:22 -03:00
parent ff8ac4c9db
commit afd34c8af6
11 changed files with 33 additions and 33 deletions

View File

@@ -520,7 +520,7 @@ public class BinaryJedis implements BinaryJedisCommands {
* @return Integer reply, this commands will reply with the new value of key
* after the increment.
*/
public Long decrBy(final byte[] key, final int integer) {
public Long decrBy(final byte[] key, final long integer) {
checkIsInMulti();
client.decrBy(key, integer);
return client.getIntegerReply();
@@ -576,7 +576,7 @@ public class BinaryJedis implements BinaryJedisCommands {
* @return Integer reply, this commands will reply with the new value of key
* after the increment.
*/
public Long incrBy(final byte[] key, final int integer) {
public Long incrBy(final byte[] key, final long integer) {
checkIsInMulti();
client.incrBy(key, integer);
return client.getIntegerReply();
@@ -768,7 +768,7 @@ public class BinaryJedis implements BinaryJedisCommands {
* @return Integer reply The new value at field after the increment
* operation.
*/
public Long hincrBy(final byte[] key, final byte[] field, final int value) {
public Long hincrBy(final byte[] key, final byte[] field, final long value) {
checkIsInMulti();
client.hincrBy(key, field, value);
return client.getIntegerReply();