binary jedis watch command accepts several keys
This commit is contained in:
@@ -1661,8 +1661,8 @@ public class BinaryJedis implements BinaryJedisCommands {
|
|||||||
client.disconnect();
|
client.disconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String watch(final byte[] key) {
|
public String watch(final byte[]... keys) {
|
||||||
client.watch(key);
|
client.watch(keys);
|
||||||
return client.getStatusCodeReply();
|
return client.getStatusCodeReply();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ public class TransactionCommandsTest extends JedisCommandTestBase {
|
|||||||
assertEquals("bar", jedis.get("mykey"));
|
assertEquals("bar", jedis.get("mykey"));
|
||||||
|
|
||||||
// Binary
|
// Binary
|
||||||
jedis.watch(bmykey);
|
jedis.watch(bmykey, "foobar".getBytes());
|
||||||
t = jedis.multi();
|
t = jedis.multi();
|
||||||
|
|
||||||
nj.connect();
|
nj.connect();
|
||||||
|
|||||||
Reference in New Issue
Block a user