imperugo/StackExchange.Redis.Extensions

Accelergreat: missing keys

CorporateActionMan opened this issue · 1 comments

Accelergreat Missing Keys

Hi Ugo,

The environment

I'm using an integration test framework that spins up 8 isolated Web Api environments and therefore 8 connection multiplexers each within the bounds of an xunit test using Kestrel connected to a single redis docker standalone container all on a local Development machine.

The problem

When I run the tests I get seemingly byzantine errors and it appears that some of the keys are not persisted for a single Web api Request. The test then fails for a subsequent request because the cache entry does not exist. Note there are no exceptions thrown prior to the missing cache entries being discovered.

What could be going wrong?

It would be great to actually show you.

Hi @CorporateActionMan
if you don't have any exception it seems really strage. Are you able to replicate it in your environment right?
Have you any error log? Because the multiplex is logging more or less all if you enable it.

Look here

https://github.com/imperugo/StackExchange.Redis.Extensions/blob/master/src/core/StackExchange.Redis.Extensions.Core/Implementations/StateAwareConnection.cs#L44-L72