public async Task <HyperLogLog> CopyAsync(Key destination) { var command = new PFMERGE(destination, Key); await connection.ExecuteAsync(command).ConfigureAwait(false); return(new HyperLogLog(connection, destination)); }
public async Task <HyperLogLog> MergeAsync(Key destination, IReadOnlyList <HyperLogLog> others) { var command = new PFMERGE( destination, new PrefixedList <Key>( Key, others.Select(hyperLogLog => hyperLogLog.Key).ToList() ) ); await connection.ExecuteAsync(command).ConfigureAwait(false); return(new HyperLogLog(connection, destination)); }