且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP.NET MVC 缓存因身份验证而异

更新时间: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.