是DiskCacheProvider在ASP.Net 4.0真的存在吗? [英] Is DiskCacheProvider in ASP.Net 4.0 really exist?

查看:223
本文介绍了是DiskCacheProvider在ASP.Net 4.0真的存在吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看了很多地方说,ASP.net 4.0的新功能,以及code是:

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>

反正我不能得到它的工作,我改变code里面出来,没有用。我不仅可以找到从Microsoft它与asp.net出货1缓存提供商AspNetInternalProvider

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

那么,是DiskOutputCacheProvider真的存在吗?如果是的话,如何使用它。

So, Is DiskOutputCacheProvider really exist? If yes, how to use it.

另外,我需要在Azure中使用它,所以我想在这里必须有磁盘缓存设置缓存文件夹的地方,对吧?

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?

如果任何人有蔚蓝(使用LocalResources.LocalStorage与否)的磁盘缓存解决方案,请与我,免费或付费的共享。谢谢你。

If anyone has a disk cache solution for azure (use LocalResources.LocalStorage or not), please share with me, free or paid. Thanks.

推荐答案

该DiskCacheOutputProvider不是在.NET 4.0中不包含。但你可以扩展.NET 4.0缓存和创建自己的。有一些在线的例子中如何做到这一点。

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.

<一个href=\"http://weblogs.asp.net/scottgu/archive/2010/01/27/extensible-output-caching-with-asp-net-4-vs-2010-and-net-4-0-series.aspx\" rel=\"nofollow\">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/$c$c/ ExtensibleOutputCachingDemo.zip **从 http://www.4guysfromrolla.com/来源文章/ 061610-1.aspx

这只是样品code和没有准备好黄金时间所以要小心使用这个的。你必须连线这一切在web.config中。

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.

这篇关于是DiskCacheProvider在ASP.Net 4.0真的存在吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆