Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Our application runs on Azure App Service (Linux) in a docker container.
Following numerous lost connections to the Redis cache, we activated ForceReconnect with the switch “Microsoft.AspNetCore.Caching.StackExchangeRedis.UseForceReconnect”.
This worked fine until we used ConnectionMultiplexerFactory in the StackExchangeRedisCache configuration: the factory connection was released but never reconnected :
aspnetcore/src/Caching/StackExchangeRedis/src/RedisCache.cs
Lines 289 to 297 in 13a7e9d
Is this the expected behavior? Is it better to modify the Factory to take account of this case (taking into account other services using it) or to disable the ForceReconnect pattern, which is probably useless since StackExchange/StackExchange.Redis#2610 ?
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
6.0
Anything else?
Microsft.Extensions.Caching.StackExchangeRedis : 8.0.3
StackExchange.Redis : 2.7.33