English 中文(简体)
在ASP.Net网站农场中,依赖数据库的Cashing是一个好办法吗?
原标题:In ASP.Net web farm is database dependent Caching a good approach?

我当时正在查看一个网络农场ASP.Net 应用程序, 使用数据库依赖性 < / 坚固 > 的“ 坚固” 数据缓存。 因此, 一旦数据库值发生变化, 每个网络农场的网络服务器就会自动刷新缓存值 。 这似乎会让整个网络服务器的所有缓存值同步。 这听起来像一个好主意还是我漏掉了什么?

最佳回答

否。它并不意味着所有服务器一旦在 db 刷新值中恢复值, 除非您使用 SqlCacheDependidente 之类的东西。 请查看 @ 以下链接 : < a href=" http:// www. asp. net/web- forms/tutorings/ data- access/ caching- data/ singing- sql-cache- defaitenties- vb > > http://www. asp. net/web- forms/tutorics/data- access/caching- data/using- sql- cache- defatency- vb >

否则,该机制仅涉及查看数据库并从数据库中取出数值。 可能有 sql 任务可能 rerefresh 值。 因此它与以上不同 。

注:对于 SqlCacheDepatime, 您需要使用 MSsql 2005+ 服务器 。

另一种技术就是用网钩来解决问题...

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签