gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 00:40:28 25 4
gpt4 key购买 nike

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com