开发者

Asp .NET MVC OutputCache stored in SQL db

开发者 https://www.devze.com 2023-02-06 09:37 出处:网络
How can you configure 开发者_如何学COutputCache in Asp .NET MVC 2 (with .NET 3.5) so that the cached data is stored in SQL database?This could be achieved in ASP.NET 4.0 where you can write a custom c

How can you configure 开发者_如何学COutputCache in Asp .NET MVC 2 (with .NET 3.5) so that the cached data is stored in SQL database?


This could be achieved in ASP.NET 4.0 where you can write a custom cache provider. Quote from this very same blog post:

One limitation of output caching with ASP.NET V1->V3.5, though, is that the cache store itself is not extensible – and the cached content always has to be stored in-memory.

Time to upgrade :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消