You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error when enabling highIntegrity configuration with Redis Sentinel #2993
I have deployed a Redis Sentinel cluster and integrated it with my web application as a distributed cache. During usage, I encountered a situation where at certain times, when reading cache from Redis with key A, it returns data from key B, accompanied by exceptions like StackExchange.Redis.RedisConnectionException: Unexpected response to HMGET: Integer: 1. After investigation, I discovered this issue is documented in #2804
I found that the recommended solution is to add highIntegrity=true to the Redis connection string to resolve the issue.
However, when I tried this configuration, I encountered a new error:
Unhandled exception. StackExchange.Redis.RedisConnectionException: Sentinel: The ConnectionMultiplexer is not a Sentinel connection. Detected as: Standalone at StackExchange.Redis.ConnectionMultiplexer.GetSentinelMasterConnection(ConfigurationOptions config, TextWriter log) in D:\Temp\StackExchange.Redis-2.8.58\src\StackExchange.Redis\ConnectionMultiplexer.Sentinel.cs:line 173 at StackExchange.Redis.ConnectionMultiplexer.SentinelPrimaryConnect(ConfigurationOptions configuration, TextWriter log) in D:\Temp\StackExchange.Redis-2.8.58\src\StackExchange.Redis\ConnectionMultiplexer.Sentinel.cs:line 140 at StackExchange.Redis.ConnectionMultiplexer.Connect(ConfigurationOptions configuration, TextWriter log) in D:\Temp\StackExchange.Redis-2.8.58\src\StackExchange.Redis\ConnectionMultiplexer.cs:line 661 at StackExchange.Redis.ConnectionMultiplexer.Connect(String configuration, TextWriter log) in D:\Temp\StackExchange.Redis-2.8.58\src\StackExchange.Redis\ConnectionMultiplexer.cs:line 639 at Program.<Main>(String[] args) in D:\ConsoleApp1\Program.cs:line 6
Below is my test code sample. I need assistance on how to enable the highIntegrity=true configuration when using Redis Sentinel: var redis = ConnectionMultiplexer.Connect("192.168.41.180:26379,192.168.41.181:26379,192.168.41.182:26379,serviceName=mymaster,password=123321@Xyz,abortConnect=false,highIntegrity=true");
I am using the StackExchange.Redis library version 2.8.58.
My application is built with .NET 8.0.
I am experiencing this issue on both Linux and Windows environments.
Activity
freezonezk commentedon Jan 14, 2026
I found a similar issue at this link: #2992
I will follow up on this through this link.