Skip to content

Commit

Permalink
Add a mention of MGET, MSET and DEL commands to the cluster document,…
Browse files Browse the repository at this point in the history
… that behavior was changed by internal library
  • Loading branch information
supercaracal committed Sep 7, 2024
1 parent a675945 commit d6b16ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,10 @@ end
In a cluster mode client, you need to pass a block if you call the watch method and you need to specify an argument to the block.
Also, you should use the block argument as a receiver to call commands in the block.
Although the above restrictions are needed, this implementations is compatible with a standalone client.

## MGET, MSET and DEL
This gem allows you to use MGET, MSET and DEL specifying multiple keys without a hash tag.
Cross-slot errors are prevented by an internal dedicated implementation.
The underlying library makes the behavior possible.
(ref. [redis-cluster-client](https://github.com/redis-rb/redis-cluster-client))
That said, we recommend to use a hash tag for these commands to the better performance.

0 comments on commit d6b16ee

Please sign in to comment.