@outputCache 指令在 ASP.NET 中有何用途?

发布于 2024-09-08 10:47:46 字数 31 浏览 1 评论 0原文

我认为它与缓存概念有关,但不知道它是如何使用的。

I think it has been related to caching concept but don't know how is it used.

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

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

发布评论

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

评论(1

潇烟暮雨 2024-09-15 10:47:46

您可以在 MSDN 上阅读有关页面输出缓存的信息:http://msdn.microsoft。 com/en-us/library/ms178597.aspx

该指令允许您指定设置,例如页面是否应缓存其输出、缓存多长时间以及其他配置选项。

对于运行成本较高的页面来说,输出缓存可以带来性能优势。一旦被缓存,将来的请求将从缓存中得到服务,而无需再次运行该页面。

You can read about page output caching on MSDN: http://msdn.microsoft.com/en-us/library/ms178597.aspx

The directive allows you to specify settings such as whether a page should have its output cached, for how long, and other configuration options.

Output caching can be a performance benefit to a page that is expensive to run. Once it is cached, future requests will be served from the cache without the page having to run again.

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