积极答复者
关于Cache与Cache的Cache问题

问题
-
Cache1,System.Web.UI.Page Cache
Cache2,System.Web.Caching.Cache
Cache3,System.Web.HttpContext.Current.Cache
想询问这些cache的生命周期和存贮范围
例如:
是因为这样的,我在web_app中的一个Cache.cs中这样写
System.Web.HttpContext.Current.Cache["webCachePage"]=。。。。
我在index.aspx.cs中这样写
var WebPage = Cache["webCachePage"]。tostring();
但是他是null
使用Cache.Insert添加他也是null
我也查过msnd 但是没看太明白
实现用于 Web 应用程序的缓存。
为当前 HTTP 请求获取 Cache 对象。
获取与该页驻留的应用程序关联的 Cache 对象。
我想找到一种可以长久驻扎内存,并且全局访问的
app中我已经写了好多DataTable了虽然不大但是个数不少(一共大约有1000多行吧)
还可以继续添加吗
答案
-
- 已标记为答案 KeFang Chen 2009年3月11日 8:59
全部回复
-
- 已标记为答案 KeFang Chen 2009年3月11日 8:59