added variadic versions of lpush/rpush(x) functions

This commit is contained in:
samhendley
2013-01-10 02:39:48 -05:00
parent 6b5fccdc0a
commit 258ac300fc
12 changed files with 42 additions and 52 deletions

View File

@@ -2979,7 +2979,7 @@ public class BinaryJedis implements BasicCommands, BinaryJedisCommands, MultiKey
client.sync();
}
public Long lpushx(final byte[] key, final byte[] string) {
public Long lpushx(final byte[] key, final byte[]... string) {
client.lpushx(key, string);
return client.getIntegerReply();
}
@@ -2999,7 +2999,7 @@ public class BinaryJedis implements BasicCommands, BinaryJedisCommands, MultiKey
return client.getIntegerReply();
}
public Long rpushx(final byte[] key, final byte[] string) {
public Long rpushx(final byte[] key, final byte[]... string) {
client.rpushx(key, string);
return client.getIntegerReply();
}