我目前使用Windows Azure缓存进行缓存,但是我想使用Redis缓存。我尝试从我的项目中删除Windows Azure缓存软件包,并添加了Redis缓存软件包,并进行了相应的配置。用Redis缓存替换Windows Azure缓存?
但是,这似乎并没有工作,并给了我很多构建错误,因为我相信它仍然在寻找Windows Azure缓存。
我该如何解决这个问题并成功切换到Redis Cache?
另外想知道是否应该从我的WebRole的Web.config文件中删除此部分?
<dataCacheClients>
<dataCacheClient name="default">
<!--To use the Windows Azure Cache Service, set identifier to be the endpoint of the cache cluster -->
<autoDiscover isEnabled="true" identifier="testingabc.cache.windows.net" />
<!--<localCache isEnabled="true" sync="TimeoutBased" objectCount="100000" ttlValue="300" />-->
<!--Use this section to specify security settings for connecting to your cache. This section is not required if your cache is hosted on a role that is a part of your cloud service. -->
<securityProperties mode="Message" sslEnabled="true">
<messageSecurity authorizationInfo="MyAuthInfo" />
</securityProperties>
</dataCacheClient>
您可能希望在您的问题中添加这些构建错误的描述。 –
只有预料? Redis并不代替Windows Azure Cache。这些软件包不实现相同的API。 –
错误是:“CloudServices64:找不到名为'approot \ bin \ Microsoft.WindowsAzure.caching \ ClientPerfCounterInstaller.exe'启动任务myprojWebRole的Microsoft.WindowsAzure.caching \ ClientPerfCounterInstaller.exe – chillax786