如何在 Windows Azure 上使用多个实例的 asp.net 缓存

发布于 2024-08-06 16:56:33 字数 195 浏览 3 评论 0原文

大家好,如果我有一个在多个实例下运行的 Azure Web 应用程序,我该如何使用 ASP.NET 缓存。 azure 团队是否为 azure 编写了任何缓存提供程序?

我在某处读到他们将来将支持速度,但如果我必须在接下来的几个月内使用某些应用程序,我可以缓存数据的最佳方式是什么(我不想使用 sql server 缓存,因为这简单地击败了我的首先缓存的目的)

hey guys if i have an azure web app running under multiple instances how do i use asp.net cache. has the azure team written any cache providers for azure?

i read somewhere they are going to support velocity in future but if i have to go live with some app in next couple of months what is the best way i can cache my data (i dont want to use sql server cache as that simply defeats my purpose of caching in the first place)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

止于盛夏 2024-08-13 16:56:33

现在有几个选项 -

1) 查看 azuresqlsession.codeplex.com - 一个与 SQL Azure 配合使用的自定义会话提供程序。它比 Microsoft 编写的使用 Azure 表存储的自定义提供程序要快得多。

2) 还有“AppFabric Caching”——在 Azure 数据中心运行的分布式缓存。 Microsoft 还编写了一个与 AppFabric 缓存配合使用的自定义会话提供程序。目前它在 CTP 中,您可以在此处获取它 - Portal.appfabriclabs.com - 这里有关于如何使用它的很好的概述 - http://blogs.msdn.com/b/windowsazureappfabric/archive/2010 /10/28/introduction-to-windows-azure-appfabric-caching-ctp.aspx?wa=wsignin1.0 - 以及 azure sdk 1.3 实验室中。

我意识到这个问题不久前被问过 - 我只是想如果有人在谷歌/必应搜索后偶然发现这个问题我会更新它。

美好时光!
关于我/ehuna

There are a few options now -

1) Check out azuresqlsession.codeplex.com - a custom session provider that works with SQL Azure. It's much faster than the custom provider Microsoft wrote that works with azure table storage.

2) There's also "AppFabric Caching" - a distributed cache that runs in the azure data centers. Microsoft also wrote a custom session provider that works with AppFabric Caching. Currently it's in CTP and you can get it here - portal.appfabriclabs.com - there's a good overview on how to use it here - http://blogs.msdn.com/b/windowsazureappfabric/archive/2010/10/28/introduction-to-windows-azure-appfabric-caching-ctp.aspx?wa=wsignin1.0 - and also in the azure sdk 1.3 labs.

I realize the question was asked a while back - I just thought I'd update it if someone stumbled upon the question after a google/bing search.

Good times!
about.me/ehuna

凹づ凸ル 2024-08-13 16:56:33

我只是想更新最新的信息,因为我刚刚偶然发现了这篇文章:

Windows Azure 缓存已上线并正在全面运行,请在此处了解更多信息:

http://msdn.microsoft.com/en-us/library/windowsazure/gg278356.aspx

下面是一个示例,展示如何使用 Windows Azure使用 ASP.NET 应用程序进行缓存:

  1. 如何:在缓存中添加和检索对象
  2. 如何:指定缓存中对象的过期时间
  3. 如何:在缓存中存储 ASP.NET 会话状态
  4. 如何:存储 ASP.NET 页面缓存中的输出缓存

https://www.windowsazure .com/en-us/develop/net/how-to-guides/cache/

I just wanted to update with latest Info as I just stumbled upon this post:

Windows Azure Cache is live and running in full Swing, learn more here:

http://msdn.microsoft.com/en-us/library/windowsazure/gg278356.aspx

Here is an example to show how to use Windows Azure Cache with ASP.NET application:

  1. How To: Add and Retrieve an Object from the Cache
  2. How To: Specify the Expiration of an Object in the Cache
  3. How To: Store ASP.NET Session State in the Cache
  4. How To: Store ASP.NET Page Output Caching in the Cache

https://www.windowsazure.com/en-us/develop/net/how-to-guides/cache/

℉服软 2024-08-13 16:56:33

Microsoft 计划实施 Windows Azure 缓存提供程序(当 ASP.NET 缓存扩展性随 .NET 4.0 一起提供时)。

与此同时,您是否可以在每个实例上单独缓存,然后使用队列存储在实例之间发送消息以使缓存失效?

Microsoft plans to implement a Windows Azure Cache Provider when ASP.NET Cache extensibility ships with .NET 4.0.

In the meantime, could you cache separately on each instance and then maybe use queue storage to message between instances for cache invalidation?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文