@@ -92,19 +92,24 @@ Cluster Mode
92
92
93
93
Cluster mode has limited support for lua scripting.
94
94
95
- The following commands are supported, with caveats: - ``EVAL `` and
96
- ``EVALSHA ``: The command is sent to the relevant node, depending on the
97
- keys (i.e., in ``EVAL "<script>" num_keys key_1 ... key_n ... ``). The
98
- keys *must * all be on the same node. If the script requires 0 keys, *the
99
- command is sent to a random (primary) node *. - ``SCRIPT EXISTS ``: The
100
- command is sent to all primaries. The result is a list of booleans
101
- corresponding to the input SHA hashes. Each boolean is an AND of “does
102
- the script exist on each node?”. In other words, each boolean is True
103
- iff the script exists on all nodes. - ``SCRIPT FLUSH ``: The command is
104
- sent to all primaries. The result is a bool AND over all nodes’
105
- responses. - ``SCRIPT LOAD ``: The command is sent to all primaries. The
106
- result is the SHA1 digest.
107
-
108
- The following commands are not supported: - ``EVAL_RO `` - ``EVALSHA_RO ``
95
+ The following commands are supported, with caveats:
96
+
97
+ - ``EVAL `` and ``EVALSHA ``: The command is sent to the relevant node,
98
+ depending on the keys (i.e., in ``EVAL "<script>" num_keys key_1 ...
99
+ key_n ... ``). The keys *must * all be on the same node. If the script
100
+ requires 0 keys, *the command is sent to a random (primary) node *.
101
+ - ``SCRIPT EXISTS ``: The command is sent to all primaries. The result
102
+ is a list of booleans corresponding to the input SHA hashes. Each
103
+ boolean is an AND of “does the script exist on each node?”. In other
104
+ words, each boolean is True iff the script exists on all nodes.
105
+ - ``SCRIPT FLUSH ``: The command is sent to all primaries. The result
106
+ is a bool AND over all nodes’ responses.
107
+ - ``SCRIPT LOAD ``: The command is sent to all primaries. The result
108
+ is the SHA1 digest.
109
+
110
+ The following commands are not supported:
111
+
112
+ - ``EVAL_RO ``
113
+ - ``EVALSHA_RO ``
109
114
110
115
Using scripting within pipelines in cluster mode is **not supported **.
0 commit comments