横跨在Windows计算机上的.NET应用程序缓存 [英] Caching across Applications in .Net on a Windows Machine

查看:126
本文介绍了横跨在Windows计算机上的.NET应用程序缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现缓存在.net使得缓存数据的访问并不只是可能运行在同一台机器上多次申请,但其他类型的可运行的机器上的应用程序。他们可能是Windows服务,Web服务,赢的形式等。

I am trying to implement caching in .Net such that the cached data is accessible not just by an application that may run multiple times on the same machine but by other types of applications that may run on the machine. They could be windows services, web services, win forms etc.

我已经看过System.Runtime.Caching(因为企业应用程序块缓存将成为过时)作为一种手段来实现这一目标。默认的MemoryCache不足以实现这一目标,因为我不相信它跨应用程序域工作。

I have looked at System.Runtime.Caching (because Enterprise Application Blocks Caching is going to become obsolete) as a means to achieve this. The default MemoryCache is insufficient to achieve this as I don't believe that it work across app domains.

有没有一种方法可以让我实现了一种高速缓存我在寻找或者是有某种缓存DLL(必须是免费的),我可以用它来实现我的目标是什么?

Is there a way I can implement the kind of caching I am looking for or is there a caching dll of some sort (must be free) that I can use to achieve my goal?

有没有办法使用System.Runtime.Caching与IsolatedStorage作用于MachineLevel?

Is there a way to use System.Runtime.Caching with IsolatedStorage scoped to MachineLevel?

我看的memcache也不能使用它,因为我们需要这个在Windows机器上运行。我开始寻找SharedCache。(HTTP://www.$c$cproject.com/KB/web-cache/AdvanceCaching.aspx),并很好奇它还有的缺陷

I've looked at memcache too and can't use it because we need this to run on windows machines. I started looking at SharedCache (http://www.codeproject.com/KB/web-cache/AdvanceCaching.aspx) and am curious about the pitfalls it has as well.

感谢。

- 修订1 -

我觉得对我来说最佳的解决方案将使用缓存对象到内存映射文件(http://msdn.microsoft.com/en-us/library /dd997372.aspx)。所以这个问题我现在是,是否有人做过,与System.Runtime.Caching对象。必须有一种方法来扩展它在必要时......如何做到这一点的例子也将是非常美联社preciated。

I think the optimal solution for me would use the Caching object to a Memory Mapped File (http://msdn.microsoft.com/en-us/library/dd997372.aspx). So the question I have now is whether anyone has done that with the System.Runtime.Caching object. There must be a way to extend it if necessary...examples of how to do so would also be much appreciated.

推荐答案

您正在寻找 AppFabric的缓存。这是微软在Windows服务器技术。它是免费的。

You're looking for AppFabric Cache. It's a Windows Server technology from Microsoft. It's free.

我也要说,如果你喜欢memcached的,你的可以的使用在Windows上为好,而事实上微软Azure团队的成员来推荐吧,AppFabric缓存之前,是可以在Windows Azure上

I should also say that if you like memcached, you can use that on Windows as well, and in fact Microsoft Azure team members used to recommend it, before the AppFabric caching was available on Windows Azure.

这篇关于横跨在Windows计算机上的.NET应用程序缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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