I installed the nuget package Microsoft.Web.RedisOutputCacheProvider for use with Azure Web App running on multiple server instances, according to the instructions here https://msdn.microsoft.com/en-us/library/azure/dn798898.aspx and get following error:
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.
The configuration setting is as follows:
<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>
I tried setting connectionString to a valid connection string StackExchange.Redis instead of setting a separate port / host etc ... but still getting the same error.
We also have Microsoft.Web.RedisSessionStateProvider running in the same web application using the same settings without any problems.
Any help would be greatly appreciated.
source share