Skip to content

Commit

Permalink
JSON.MGET - clarify behavior when the specified keys are in different…
Browse files Browse the repository at this point in the history
… shards (#945)
  • Loading branch information
LiorKogan authored Dec 6, 2024
1 parent 77d567e commit c4f1ef1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/commands/json.mget/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ Return the values at `path` from multiple `key` arguments

{{% warning %}}
When cluster mode is enabled, all specified keys must reside on the same [hash slot](https://redis.io/docs/latest/operate/oss_and_stack/reference/cluster-spec/#key-distribution-model).

When the database has more than one shard, and the specified keys reside in different shards, Redis will not report a CROSSSLOT error (to avoid breaking changes) and the results may be partial.


{{% /warning %}}

[Examples](#examples)
Expand Down

0 comments on commit c4f1ef1

Please sign in to comment.