示例#1
0
        public void Clear(IRedisCacheService cacheService)
        {
            cacheService.ClearServiceCache();
            List <string> toRemove = new List <string>();

            foreach (DictionaryEntry cacheItem in HttpRuntime.Cache)
            {
                toRemove.Add(cacheItem.Key.ToString());
            }
            foreach (string key in toRemove)
            {
                HttpRuntime.Cache.Remove(key);
            }
        }