From d6b16ee159a2412fb0bf972904d5424519e67d09 Mon Sep 17 00:00:00 2001 From: Taishi Kasuga Date: Sat, 7 Sep 2024 11:52:32 +0900 Subject: [PATCH] Add a mention of MGET, MSET and DEL commands to the cluster document, that behavior was changed by internal library --- cluster/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cluster/README.md b/cluster/README.md index 51c7e316c..9953b8042 100644 --- a/cluster/README.md +++ b/cluster/README.md @@ -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.