加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – System.Web.HttpContext.Current.Cache信息

发布时间:2020-12-15 18:32:39 所属栏目:百科 来源:网络整理
导读:我想询问System.Web.HttpContext.Current.Cache是??否像Sessions一样是每个用户,还是每个应用程序.在哪种情况下使用Cache很好? 解决方法 HttpContext.Cache Property – MSDN There is one instance of the Cache class per application domain . As a resu
我想询问System.Web.HttpContext.Current.Cache是??否像Sessions一样是每个用户,还是每个应用程序.在哪种情况下使用Cache很好?

解决方法

HttpContext.Cache Property – MSDN

There is one instance of the Cache class per application domain.
As a result,the Cache object that is returned by the Cache property
is the Cache object for all requests in the application domain.

对于你的问题.

On which circumstances is nice to use Cache?.

将该信息保存在Cache中,该信息将由多个用户共享,并且(通常)如果其只读.例如,在缓存中保留查找值.你可能会看到:

Caching Data in an ASP.NET Web Pages Site for Better Performance

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读