Where is the Increment method on the DataCache?

若如初见. 提交于 2020-03-03 15:53:46

问题


I want to use the Increment method from the DataCache documentation but the method is not available on my DataCache object. Clearly I don't have the version of Microsoft.ApplicationServer.Caching.Client.dll that matches the documentation but I can't seem to figure out what version contains that method and where to get the assembly???

The version I have 1.0.4632.0

I am using the AppFabric for Windows 1.1.


回答1:


This method is part of Azure and not Windows Server. AppFabric exists in two versions : one for Windows Server and one for Azure. There are only a few differences (here is one of them).

If you're targeting Azure, simply add the package Microsoft.WindowsAzure.Caching. You will find a detailed introduciton here.

It you're targeting Windows Server, do it by yourself !



来源:https://stackoverflow.com/questions/19598162/where-is-the-increment-method-on-the-datacache

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!