简体   繁体   English

在 MVC 3 和 EF 4 中缓存数据的最佳方式

[英]The best way for caching data in MVC 3 and EF 4

Which is the best way to caching data and page's output (both) in ASP.NET MVC 3 and EF 4?在 ASP.NET MVC 3 和 EF 4 中缓存数据和页面的 output(两者)的最佳方法是什么? Is there any framework|library to this?这有什么框架|库吗? Thanks to all;谢谢大家;

ASP.NET MVC already provides output caching - check OutputCacheAttribute action filter. ASP.NET MVC 已经提供 output 缓存 - 检查OutputCacheAttribute操作过滤器。 EF4 itself doesn't have any caching available but you can check caching wrapper to add caching of query results. EF4 本身没有任何可用的缓存,但您可以检查缓存包装器以添加查询结果的缓存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM