I am not sure how to troubleshoot it but I am trying to implement ASP.NET Output Cache via Redis Output cache provider.
We have Redis server (non-azure) set up and I can store cache for general usage. However, when I try to setup ASP.NET output cache, it doesn't seem to save anything to cache!
I have installed Microsoft.Web.RedisOutputCacheProvider via Nuget. Web.Config is set up with following:
<caching>
<outputCache defaultProvider="MyRedisOutputCache">
<providers>
<add name="MyRedisOutputCache" type="Microsoft.Web.Redis.RedisOutputCacheProvider" host="ServerName" port="6464" accessKey="PasswordToRedis" />
</providers>
</outputCache>
</caching>
The MVC controller is setup with OutputCache attribute:
[OutputCache(Duration = 3600, VaryByParam = "*", Location = OutputCacheLocation.ServerAndClient)]
public JsonResult GetLookupData()
When I check the Redis, I don't see any OutputCache being stored.
Am I missing something? Is there a way to debug why it is not storing anything in cache?