Closed priyanperera closed 6 years ago
Redis might have removed they key. That can be due to your expiration settings or memory pressure?
Exists
also doesn't "touch" the key, which means, if you don't do a GET, the sliding expiration window will not get extended and the key expires...
I'm pretty sure the exists
method works fine. If you still think there is a bug or an issue, please try to give me an example to easily reproduce the behavior ;)
Hi, I am using the following configuration to build the cache manager.
Then I use cache.Put(key, value); to set a value in the cache.
Then I retrieve a memory cache handle and a redis cache handle using the following code.
var localHandle = (MemoryCacheHandle
var redisHandle = (RedisCacheHandle)_cache.CacheHandles.First(h => h is RedisCacheHandle);
The issue is when I am calling the redisCache.Exists(key). It returns true sometimes and false intermittently which is puzzling since the memory cache handle is consistent all the time. Any pointers as to what I might be doing wrong?