//创建缓存依赖项
            CacheDependency dep = new CacheDependency(fileName);
            //创建缓存
            HttpContext.Current.Cache.Insert(key, obj, dep);

 

获取CacheDependency 的方法

            if (string.IsNullOrEmpty(key))
            {
                return null;
            }
            return HttpContext.Current.Cache.Get(key);

 

 

相关文章:

  • 2022-12-23
  • 2021-07-14
  • 2021-07-18
  • 2021-12-18
  • 2022-01-21
  • 2021-07-30
  • 2021-10-22
  • 2021-11-09
猜你喜欢
  • 2021-07-07
  • 2021-07-15
  • 2022-12-23
  • 2022-02-18
  • 2022-01-02
相关资源
相似解决方案