Skip to content

Commit

Permalink
Merge pull request #1291 from supercaracal/fix-docs-for-cluster
Browse files Browse the repository at this point in the history
Add a mention of MGET, MSET and DEL commands to the cluster document, that behavior was changed by internal library
  • Loading branch information
byroot authored Sep 8, 2024
2 parents a6d8d6a + d6b16ee commit 6afa62b
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 6afa62b

Please sign in to comment.