ASP.NET应用程序中的缓存客户端 [英] Cache Clients in ASP.NET app

查看:66
本文介绍了ASP.NET应用程序中的缓存客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ASP.NET应用程序中,我们是在每次请求进入时创建一个缓存客户端(例如,在后面的页面代码中执行),还是为单个ASP.NET应用程序使用单独的缓存客户端? ?

In an ASP.NET application, do we create a cache client every time a request comes in (execute in page code behind for example), or do we use a singleton Cache Client for a single ASP.NET app?

我刚刚了解到每个ASP.NET应用程序只有一个本地缓存,它是否适用于缓存客户端?

I just learnt that there is only one single local cache per ASP.NET app, does it apply the same to Cache clients?

推荐答案

根据您创建的每个datcachefactory获得一个本地缓存(每个数据需要一个单独的连接),

You get a local cache per each datcachefactory you create (need a separate connection for each),

据我所知,您可以创建许多在你的ASP.NET应用程序中的这些,但请记住,这可能是昂贵的。也许如果你给我们你的方案我们可以建议如何解决方案。

As I understand, you could create many of these in your ASP.NET app but keep in mind that this can be expensive. Maybe if you give us your scenario we could advice on how to go about a solution.

更多关于Datacachefactory
http://msdn.microsoft.com/en-us/library/ff899346(v=WS.10).aspx

More on Datacachefactory http://msdn.microsoft.com/en-us/library/ff899346(v=WS.10).aspx

 


这篇关于ASP.NET应用程序中的缓存客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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