删除 Cache

 System.Web.Caching.Cache cache = HttpRuntime.Cache;

        IDictionaryEnumerator CacheEnum = cache.GetEnumerator();

        while (CacheEnum.MoveNext())

        {

            cache.Remove(CacheEnum.Key.ToString());

        }

        labCache.Text = "共有" + Cache.Count + "项缓";

你可能感兴趣的:(cache)