Asp.net清除数据缓存及页面缓存
摘要: //清除所有数据缓存IDictionaryEnumeratorCacheEnum=Cache.GetEnumerator();while(CacheEnum.MoveNext()){Cache.Remove(CacheEnum.Entry.Key.ToString());} //清除指定的数据缓存 HttpRuntime.Cache.Remove(cacheEnmu.Key.ToString()); //清除指定的页面缓存(注:在同一浏览器下要刷新一下) stringPagePath="/Default.aspx";HttpResponse.RemoveOutputCach
阅读全文
posted @
2011-10-17 21:14 小小池 阅读(47) |
评论 (0) 编辑