遍历内存中的缓存

System.Web.Caching.Cache _cache = HttpRuntime.Cache;
IDictionaryEnumerator CacheEnum = _cache.GetEnumerator();
//ArrayList al = new ArrayList();
while (CacheEnum.MoveNext())
{
//al.Add(CacheEnum.Key+"===="+CacheEnum.Value);

Response.Write(CacheEnum.Key+"===="+CacheEnum.Value+"<br />");
}

原文地址:https://www.cnblogs.com/peterdys/p/4157318.html