更新时间:2022-12-06 12:46:47
您不必使用甜甜圈缓存机制.ASP.NET 具有 VaryByCustom
选项,允许您确定如何改变缓存.
You don't have to use the donut caching mechanism. ASP.NET has the VaryByCustom
option, that allows you to determine how to vary the caching.
查看更多信息:http://aspadvice.com/blogs/ssmith/archive/2007/10/29/VaryByCustom-Caching-By-User.aspx
应该适用于 ASP.NET MVC.
Should work fine for ASP.NET MVC.