zoukankan      html  css  js  c++  java
  • Asp.net清除数据缓存及页面缓存

        //清除所有数据缓存
        IDictionaryEnumerator CacheEnum = Cache.GetEnumerator();
        while (CacheEnum.MoveNext())
        {
          Cache.Remove(CacheEnum.Entry.Key.ToString());
        }
       //清除指定的数据缓存

    HttpRuntime.Cache.Remove(cacheEnmu.Key.ToString());
       

       //清除指定的页面缓存(注:在同一浏览器下要刷新一下)

       string PagePath = "/Default.aspx";
       HttpResponse.RemoveOutputCacheItem(PagePath);

  • 相关阅读:
    连载日记
    自我介绍
    test0710 二分专题
    test0709 搜索专题
    test0705
    test0704
    [题解] [HNOI2015]落忆枫音
    test0606
    test0523
    备份
  • 原文地址:https://www.cnblogs.com/chixiaojin/p/2215856.html
Copyright © 2011-2022 走看看