- Redis is running on windows (services -> Redis Server)
- Web.config is configured
<caching>
<outputCache defaultProvider="MyRedisOutputCache" enableOutputCache="true" enableFragmentCache="true" sendCacheControlHeader="true">
<providers>
<add name="MyRedisOutputCache" type="microsoft.web.redis.redisoutputcacheprovider" host="127.0.0.1" port="6379"accesskey="" ssl="false" />
</providers>
</outputCache>
</caching>
Output cache attribute is added to my Web Api controller
[CacheOutput(ClientTimeSpan = 60, ServerTimeSpan = 60)]
Caching is working, but Redis does not contain any key
redis 127.0.0.1:6379> keys * (empty list or set) redis 127.0.0.1:6379>
Also tried to register my custom output cache provider
public override string GetOutputCacheProviderName(HttpContext context) { return "MyRedisOutputCache"; }
Nothing helped :( Any idea?
redis-cli monitorI only see bunch ofGETrequests but noSETat all. Strange! the same provider works just fine with a remote redis (eg. redislab), and the same redis installation is working great with other parts of the same application that uses StackExchange Redis client to store and retrieve data. - undefined