Skip to content

Commit 852b1a3

Browse files
committed
Add comment about cluster mode connection selection
1 parent 7f297eb commit 852b1a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/Valkey/RESP/RESPCommand.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public protocol RESPCommand: Sendable {
1919
associatedtype Response: RESPTokenRepresentable = RESPToken
2020
associatedtype Keys: Collection<RESPKey>
2121

22-
/// Keys affected by command
22+
/// Keys affected by command. This is used in cluster mode to determine which
23+
/// shard to connect to.
2324
var keysAffected: Keys { get }
2425

2526
///

0 commit comments

Comments
 (0)