private void OnRedisKeyEvent(string channel, string message) { // INFO: "message" is the cache key var key = RedisUtility.GetEventFromChannel(channel); switch (key) { //case "expire": case "expired": case "evicted": Expired?.Invoke(this, new CacheEntryExpiredEventArgs { Key = NormalizeKey(message) }); RemoveDependingEntries(new string[] { message }); //Debug.WriteLine("Expiration occurred for {0}".FormatInvariant(message)); break; } }