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); }
public Set<String> sunion(String... keys) { checkIsInMulti(); client.sunion(keys); List<String> members = client.getMultiBulkReply(); return new LinkedHashSet<String>(members); }