ASP.NET - 我存储在缓存中的所有内容都是 w3wp 进程的一部分吗?

发布于 2024-08-06 14:33:51 字数 239 浏览 3 评论 0原文

据我了解,ASP.NET 缓存是 w3wp 进程的一部分,这意味着写入和读取它

  • 跨进程边界
  • 需要编组
  • >不要求或执行放置在其中的对象的序列化

(与使用执行所有这些操作的 ASP.NET 会话状态服务器相比)

这是正确的吗?

It is my understand that the ASP.NET Cache is part of the w3wp process, meaning writing to and reading from it

  • does not cross process boundaries
  • does not require marshalling
  • does not require or perform serialization of objects placed in it

(All in comparison to using ASP.NET Session State Server which does all these things)

Is this correct?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦归所梦 2024-08-13 14:33:51

如果您引用 HttpContext.Current.Cache,那么它将成为 w3wp 进程的一部分。这种形式的缓存存储在内存中,不需要序列化。

它不应该跨越进程边界,如果跨越,那将是一场灾难。这也适用于编组。

If you are refering to HttpContext.Current.Cache, then it will be part of the w3wp process. Caching of this form is stored in memory and do not require serialization.

It should not cross process boundaries, it will be a disaster if it does. That goes for marshalling too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文