Пример #1
0
 public void sunion(final String... keys) {
   final byte[][] bkeys = new byte[keys.length][];
   for (int i = 0; i < bkeys.length; i++) {
     bkeys[i] = SafeEncoder.encode(keys[i]);
   }
   sunion(bkeys);
 }
Пример #2
0
 public Set<String> sunion(String... keys) {
   checkIsInMulti();
   client.sunion(keys);
   List<String> members = client.getMultiBulkReply();
   return new LinkedHashSet<String>(members);
 }