internal RedisResponseFilter(int itemId, int maxVaryByCount, Stream filterChain, string cacheKey, TimeSpan cacheDuration) : base(filterChain, cacheKey, cacheDuration, maxVaryByCount)
 {
     if (maxVaryByCount > -1 && RedisOutputCachingProvider.GetCacheKeys(itemId).Count >= maxVaryByCount)
     {
         HasErrored = true;
         return;
     }
     CaptureStream = new MemoryStream();
 }
 protected override void RemoveItemFromCache(int itemId)
 {
     RedisOutputCachingProvider.RemoveInternal(itemId, true);
 }
 protected override void AddItemToCache(int itemId, string output)
 {
     RedisOutputCachingProvider.Instance().SetOutput(itemId, CacheKey, CacheDuration, Encoding.Default.GetBytes(output));
 }