add watch on several keys, and discard status return

This commit is contained in:
Jonathan Leibiusky
2010-11-21 21:00:40 -03:00
parent 098de44a07
commit 970ea3adf4
6 changed files with 830 additions and 816 deletions

View File

@@ -360,8 +360,12 @@ public class Client extends BinaryClient {
zscore(SafeEncoder.encode(key), SafeEncoder.encode(member));
}
public void watch(final String key) {
watch(SafeEncoder.encode(key));
public void watch(final String... keys) {
final byte[][] bargs = new byte[keys.length][];
for (int i = 0; i < bargs.length; i++) {
bargs[i] = SafeEncoder.encode(keys[i]);
}
watch(bargs);
}
public void sort(final String key) {