コード例 #1
0
        public async Task <HyperLogLog> CopyAsync(Key destination)
        {
            var command = new PFMERGE(destination, Key);
            await connection.ExecuteAsync(command).ConfigureAwait(false);

            return(new HyperLogLog(connection, destination));
        }
コード例 #2
0
        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));
        }