Skip to content

Commit

Permalink
Sentinel: Add HELLO support
Browse files Browse the repository at this point in the history
This allows connections through Sentinel via RESP3 by adding `HELLO` to the command map.
  • Loading branch information
NickCraver committed Nov 23, 2023
1 parent 79e8346 commit e46d8a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/StackExchange.Redis/CommandMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public sealed class CommandMap
/// </summary>
/// <remarks><seealso href="https://redis.io/topics/sentinel"/></remarks>
public static CommandMap Sentinel { get; } = Create(new HashSet<string> {
"auth", "ping", "info", "role", "sentinel", "subscribe", "shutdown", "psubscribe", "unsubscribe", "punsubscribe" }, true);
"auth", "hello", "ping", "info", "role", "sentinel", "subscribe", "shutdown", "psubscribe", "unsubscribe", "punsubscribe" }, true);

/// <summary>
/// Create a new <see cref="CommandMap"/>, customizing some commands.
Expand Down
1 change: 1 addition & 0 deletions tests/StackExchange.Redis.Tests/SentinelTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public async Task PrimaryConnectAsyncTest()
}

[Fact]
[RunPerProtocol]
public void SentinelConnectTest()
{
var options = ServiceOptions.Clone();
Expand Down

0 comments on commit e46d8a7

Please sign in to comment.