是页面输出缓存存储在ASP.NET缓存对象? [英] Is page output cache stored in ASP.NET cache object?

查看:198
本文介绍了是页面输出缓存存储在ASP.NET缓存对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要启用缓存在我的asp.net应用程序,但我不希望使用Web服务器的内存用于保存缓存对象。如果我添加了输出缓存的页面指令将页面保存在asp.net缓存对象?

I need to enable caching in my asp.net application, but I do not want to use the webserver's memory for holding cache objects. If I add the page directive for output caching will the page be stored in the asp.net cache object?

谢谢!

推荐答案

默认行为是要以同样的方式在内存中的内容保存为 HttpRuntime.Cache (实际上在内部 HttpRuntime.CacheInternal 其功能类似于公开可见的高速缓存),但在ASP.NET 4.0中,你可以编写自己的供应商却希望存储的内容。

The default behaviour is to store the content in memory in the same way as HttpRuntime.Cache (actually in an internal HttpRuntime.CacheInternal which behaves similarly to the publicly visible cache), but in ASP.NET 4.0 you can write your own provider to store the content however you wish.

这一个很好的介绍实施的提供者,在应用程序中使用它: HTTP ://dotnet.dzone.com/news/aspnet-output-cache-provider

This a nice introduction to implementing a provider and using it in your application: http://dotnet.dzone.com/news/aspnet-output-cache-provider

这篇关于是页面输出缓存存储在ASP.NET缓存对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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