我正在尝试使用 WindowsAzure 共享缓存和此处记录的 DataCache 类的增量运算符:http://msdn.microsoft.com/en-us/library/windowsazure/jj160018.aspx .
我使用的 Microsoft.ApplicationServer.Caching.Client.dll 来自 1.7 nuget 缓存包 http://nuget.org/packages/WindowsAzure.Caching但我在该程序集中找不到增量方法。
Azure 中是否提供 Increment 方法?如果是,我应该引用哪个 dll 来访问它?
最佳答案
我刚刚对其进行了测试,发现此功能已添加到 Windows Azure 缓存(预览版)中 - 具有专用或共存。因此,如果您决定在专用或共置模式下将 Windows Azure 缓存预览版与您的 Web 或辅助角色一起使用,那么您肯定可以使用此功能。如果您想了解 Windows Azure 共享缓存和 Windows Azure 缓存(预览版)之间的区别,请查看我的博客:Difference between Windows Azure Cache(Preview) and Windows Azure Shared Cache
此功能不适用于 WindowsAzure 共享缓存。
关于c# - DataCache.Increment 是否可用于 WindowsAzure 共享缓存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11246043/