public static DataTable GetIndex(string key)
        {
            
if (System.Web.HttpContext.Current.Cache[key] != null)
            {
                
return (DataTable)System.Web.HttpContext.Current.Cache[key];
            }
            
else
            {
              
//读取数据内容                

System.Web.HttpContext.Current.Cache.Add(
"唯一值","数据内容" "依赖项""以创建的时候开始计算""创建后多少时间清除""设置最后访问之后的多少时间""枚举:以创建的时候开始计算,最后一次访问""清除时执行的方法");
                
return dt;
            }
        }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2021-11-06
  • 2021-09-26
  • 2021-08-18
  • 2021-05-25
  • 2022-12-23
猜你喜欢
  • 2021-09-26
  • 2021-07-01
  • 2021-06-24
  • 2021-05-29
  • 2021-06-28
  • 2022-12-23
相关资源
相似解决方案