Can I Implement Caching in MVC, If so how? I wanted to implement Cache in Controllers
+4
A:
Simplest way to do that in controller is
[OutputCache(Duration = 10, VaryByParam = "none")]
public ActionResult Index()
{
return View();
}
Amitabh
2010-04-30 12:34:06
What about localisation?
UpTheCreek
2010-04-30 12:43:38
Thanks Amitab, your solution is helpful ..But my doubt is Can I implement Application level cache in ASP.Net MVC..If so How? and I need to implement for the Objects data inside Index method not for Index method
Vinni
2010-04-30 13:13:18
+1
A:
You can use the asp.net caching mechanisms - http://msdn.microsoft.com/en-us/library/xsbfdd8c%28VS.9%29.aspx
Branislav Abadjimarinov
2010-04-30 12:34:40