Geeks With Blogs

Han Cheng C#, ASP.NET, Microsoft Technologies

   1:  System.Collections.IDictionaryEnumerator enumerator = context.Cache.GetEnumerator();
   2:  while (enumerator.MoveNext())
   3:  {
   4:      context.Cache.Remove(enumerator.Key.ToString());
   5:  }
Posted on Wednesday, April 7, 2010 9:45 PM | Back to top


Comments on this post: Clearing System.Web.Cache

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Han Cheng | Powered by: GeeksWithBlogs.net