goldnet

清空Cache

IDictionaryEnumerator CacheEnum = Cache.GetEnumerator();
 while (CacheEnum.MoveNext())//找出所有的Cache
  {
     //打印出所以的Cache Key 和 Value;
     Response.Write("key:" + CacheEnum.Key.ToString()+ "value:"+CacheEnum.Value+"<br>");
     Cache.Remove(CacheEnum.Key.ToString());
 }

分类:

技术点:

相关文章:

  • 2021-10-10
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-04
  • 2022-01-31
  • 2021-06-11
  • 2022-12-23
  • 2021-06-04
  • 2021-12-06
相关资源
相似解决方案