I set up the cache with the current SDK 3.x, and it works great when I “Set” objects into it (I can see more than 200 operations/sec)
But when i want to “Get” objects from it, I have some “operation has timed out” issues.
I’ve read some other posts about it, and I confirm I have only one instance of my DistributedCache (DI).
I think the problem comes from my “use” of this cache : I use it in a batch process, and for a majority of my “Get” requests, the entry does not exists (I catch the DocumentNotFoundException). Since I have no other methods than Get and Set from IDistributedCache (I would love a CheckIfExists method ), I have to catch the DocumentNotFoundException.
Maybe this way of doing is bad, and can cause the “Operation Time out” on the others requests sent asynchronously.
Can you tell me if i’m wrong ? Is there a better way to check if the entry exists in the cache ?