caching - ASP.NET MVC 3 中是否提供 donut 缓存

标签 caching asp.net-mvc-3 donut-caching

ASP.NET MVC 3(最终版)今天发布。当这个版本还处于起步阶段时,我记得在 codeplex 上读到正在考虑使用 donut 缓存。有谁知道这是否进入了V3?我似乎找不到任何信息,所以我只能(遗憾地)假设它没有发生。

最佳答案

是的。顾斯科特 blogged about it :

In addition to supporting full page output caching, ASP.NET MVC 3 also supports partial-page caching – which allows you to cache a region of output and re-use it across multiple requests or controllers. The [OutputCache] behavior for partial-page caching was updated with RC2 so that sub-content cached entries are varied based on input parameters as opposed to the URL structure of the top-level request – which makes caching scenarios both easier and more powerful than the behavior in the previous RC.



更新:

ASP.NET MVC 3 仅支持开箱即用的 donut 孔缓存。这允许您使用 [OutputCache] 缓存页面的一小部分。子 Action 的属性。不支持允许排除已缓存页面部分的 donut 缓存。 Response.WriteSubstitution从 ASP.NET MVC 2 开始就不能工作了。这里是 good article它解释了 ASP.NET MVC 3 中可用的不同缓存选项。

更新 2:

这是 great article这说明了如何在 ASP.NET MVC 3 中启用 donut 缓存。

关于caching - ASP.NET MVC 3 中是否提供 donut 缓存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4685906/

相关文章:

jquery - IE站点导航页面闪烁

asp.net-mvc-3 - 如何在MVC应用程序中使用POCO

asp.net - ASP.NET MVC 3 可以在 ASP.NET 3.5 网站内运行吗?

c# - 使用自定义 Redis 输出缓存提供程序时 MVCDonutCaching 失败

nhibernate - 计算 NHibernate 在单元测试中执行的查询数

javascript - 自动缓存新补丁

c# - 无法让 Polly 处理折叠请求

.net - ASP.NET MVC 期望 DateTime 采用什么格式,以便模型绑定(bind)能够正常工作?

asp.net-mvc - DonutOutputCache 不适用于图像

c# - ASP .NET - 替换和页面输出( donut )缓存 - 如何将自定义参数传递给 HttpResponseSubstitutionCallback 委托(delegate)