Skip to content

Commit

Permalink
Go: Fix MSET and MGET doc
Browse files Browse the repository at this point in the history
Signed-off-by: barshaul <[email protected]>
  • Loading branch information
barshaul committed Nov 6, 2024
1 parent 14f4bbc commit 50c9e33
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions go/api/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,12 @@ type StringCommands interface {
// Sets multiple keys to multiple values in a single operation.
//
// Note:
// When in cluster mode, the command may route to multiple nodes when keys in keyValueMap map to different hash slots.
//
// See [valkey.io] for details.
// In cluster mode, if keys in `keyValueMap` map to different hash slots, the command
// will be split across these slots and executed separately for each. This means the command
// is atomic only at the slot level. If one or more slot-specific requests fail, the entire
// call will return the first encountered error, even though some requests may have succeeded
// while others did not. If this behavior impacts your application logic, consider splitting
// the request into sub-requests per slot to ensure atomicity.
//
// Parameters:
// keyValueMap - A key-value map consisting of keys and their respective values to set.
Expand All @@ -153,9 +156,12 @@ type StringCommands interface {
// Retrieves the values of multiple keys.
//
// Note:
// When in cluster mode, the command may route to multiple nodes when keys map to different hash slots.
//
// See [valkey.io] for details.
// In cluster mode, if keys in `keys` map to different hash slots, the command
// will be split across these slots and executed separately for each. This means the command
// is atomic only at the slot level. If one or more slot-specific requests fail, the entire
// call will return the first encountered error, even though some requests may have succeeded
// while others did not. If this behavior impacts your application logic, consider splitting
// the request into sub-requests per slot to ensure atomicity.
//
// Parameters:
// keys - A list of keys to retrieve values for.
Expand Down

0 comments on commit 50c9e33

Please sign in to comment.