BB.Caching.Redis.Analytics.Ops.And C# (CSharp) Méthode

And() public static méthode

Combines events by finding their logical intersection.
public static And ( ) : RedisKey
Résultat RedisKey
        public static RedisKey And(params Event[] events)
        {
            var database = SharedCache.Instance.GetAnalyticsWriteConnection().GetDatabase(SharedCache.Instance.Db);

            // get the keys for the events (need to group subsets using TemporarilyOrKeys)
            var keys = events.Select(@event => TemporarilyOrKeys(database, @event.RedisKeys())).ToList();

            RedisKey tmpKey = TempKey(events);
            BitwiseAnalytics.BitwiseAnd(database, tmpKey, keys.ToArray(), TimeSpan.FromHours(1));
            return tmpKey;
        }