ASP.NET中移除全部缓存

            IDictionaryEnumerator CacheEnum = HttpRuntime.Cache.GetEnumerator();
            while (CacheEnum.MoveNext())
            {
                Cache.Remove(CacheEnum.Key.ToString());
            }

            Response.Write("缓存移除完毕!");

你可能感兴趣的:(c,.net,cache,asp.net,asp)