例:

1、创建缓存并存入数据

1 Cache CacheXML = HttpRuntime.Cache;
2  if (obj != null)
3             {
4                 CacheXML.Insert("XMLobj", obj);
5 }

 

2、读取缓存数据

1  var objCache = HttpRuntime.Cache.Get("XMLobj");
2             listall = (List<CustomReport>)objCache;

 C# Cache 缓存

C# Cache 缓存

参考:

http://www.cnblogs.com/kissdodog/archive/2013/05/07/3064895.html

相关文章:

  • 2021-08-06
  • 2021-11-15
  • 2021-11-14
  • 2021-09-24
猜你喜欢
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2022-01-15
  • 2021-08-17
相关资源
相似解决方案