I read many places said the new feature in ASP.net 4.0, and the code is:
<caching>
<outputCache defaultProvider="AspNetInternalProvider">
<providers>
<add name="DiskCache"
type="test.OutputCacheEx.DiskOutputCacheProvider, DiskCacheProvider"/>
</providers>
</outputCache>
</caching>
Anyway, I cannot get it work, I change the code inside out, no use. I cannot only find 1 cache provider from Microsoft which shipping with asp.net is AspNetInternalProvider
So, Is DiskOutputCacheProvider really exist? If yes, how to use it.
Also, I need to use it in Azure, so I guess is here must have a place for disk cache to setup cache folder, right?
If anyone has a disk cache solution for azure (use LocalResources.LocalStorage or not), please share with me, free or paid. Thanks.
The DiskCacheOutputProvider is not include in .net 4.0 no. But you can extend .net 4.0 caching and create your own. There are some examples online of how this is done.
http://weblogs.asp.net/scottgu/archive/2010/01/27/extensible-output-caching-with-asp-net-4-vs-2010-and-net-4-0-series.aspx
The implementation you are looking for can be found here
** http://aspnet.4guysfromrolla.com/code/ExtensibleOutputCachingDemo.zip ** Sourced from http://www.4guysfromrolla.com/articles/061610-1.aspx
It is just sample code and not ready for prime time so beware of using this. You have to wire it all up in the web.config.