Skip to content

Commit

Permalink
Apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
zuiderkwast authored Jan 5, 2024
1 parent 5762824 commit c043bd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/reference/command-tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ In cases where the client should adopt a behavior different than the default, th
This tip is in-use by commands that don't accept key name arguments.
The command operates atomically per shard.
- **multi_shard:** the client should execute the command on several shards.
The client should split the inputs according to the hash slots of its input key name arguments. For example, the command `DEL {foo} {foo}1 bar` should be split to `DEL {foo} {foo}1` and `DEL bar`. If the keys are hashed to more than a single slot, the command must be split even if all the slots are managed by the same shard.
The client should split the inputs according to the hash slots of its input key name arguments.
For example, the command `DEL {foo} {foo}1 bar` should be split to `DEL {foo} {foo}1` and `DEL bar`.
If the keys are hashed to more than a single slot, the command must be split even if all the slots are managed by the same shard.
Examples for such commands include `MSET`, `MGET` and `DEL`.
However, note that `SUNIONSTORE` isn't considered as _multi_shard_ because all of its keys must belong to the same hash slot.
- **special:** indicates a non-trivial form of the client's request policy, such as the `SCAN` command.
Expand Down

0 comments on commit c043bd1

Please sign in to comment.