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

@@ -677,16 +677,16 @@ public class BinaryClient extends Connection {
sendCommand(SYNC);
}
public void lpushx(final byte[] key, final byte[] string) {
sendCommand(LPUSHX, key, string);
public void lpushx(final byte[] key, final byte[]... string) {
sendCommand(LPUSHX, joinParameters(key, string));
}
public void persist(final byte[] key) {
sendCommand(PERSIST, key);
}
public void rpushx(final byte[] key, final byte[] string) {
sendCommand(RPUSHX, key, string);
public void rpushx(final byte[] key, final byte[]... string) {
sendCommand(RPUSHX, joinParameters(key, string));
}
public void echo(final byte[] string) {