我已经安装了NuGet包Microsoft.Web.RedisOutputCacheProvider
与多个服务器实例上运行下面的说明这里https://msdn.microsoft.com/en-us/library/azure/dn798898.aspx Azure的Web应用程序,并且收到以下错误使用时:ProviderException使用自定义的输出缓存提供RedisOutputCacheProvider
When using a custom output cache provider like 'MyRedisOutputCache', only the following expiration policies and cache features are supported: file dependencies, absolute expirations, static validation callbacks and static substitution callbacks.
的配置设置如下:
<system.web>
<caching>
<outputCache defaultProvider="MyRedisOutputCache">
<providers>
<add name="MyRedisOutputCache"
type="Microsoft.Web.Redis.RedisOutputCacheProvider"
port="1234"
host="[my host]"
accessKey="[my access key]"
ssl="true" />
</providers>
</outputCache>
</caching>
</system.web>
我已经试过connectionString
设置为有效StackExchange.Redis连接字符串,而不是设置单独的端口/主机等...但仍然收到相同的错误。
我们也有Microsoft.Web.RedisSessionStateProvider
运行在同一个网络应用程序使用相同的设置没有问题。
任何帮助,将不胜感激。
您是否找到了答案?我们也有这个问题。 –