BB.Caching.Redis.Analytics.BitwiseAnalytics.BitwiseAndAsync C# (CSharp) Method

BitwiseAndAsync() public static method

Perform a bitwise AND operation between multiple keys (containing string values) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseAndAsync ( IDatabase database, RedisKey destination, RedisKey keys ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
keys RedisKey /// The keys where the data to be AND'd are located. ///
return Task
        public static Task<long> BitwiseAndAsync(IDatabase database, RedisKey destination, RedisKey[] keys)
        {
            Task<long> result = database
                .StringBitOperationAsync(Bitwise.And, destination, keys);

            return result;
        }

Same methods

BitwiseAnalytics::BitwiseAndAsync ( IDatabase database, RedisKey destination, RedisKey keys, System.TimeSpan expire ) : Task