2010年2月23日
摘要: Cache是Asp.net中非常强大的功能,我们使用它来提高应用程序的性能。有时我们需要在某个任务结束后移除所有Cache对象,如何做呢?有以下两段代码可以使用: 1: IDictionaryEnumerator cacheEnumerator = HttpContext.Current.Cache.GetEnumerator(); 2: 3: while (cacheEnumerator.Mov... 阅读全文
posted @ 2010-02-23 14:26 PetterLiu 阅读(464) 评论(0) 推荐(1) 编辑