summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/asking.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-04 07:19:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-04 07:19:32 +0000
commit7480e618ec785ba8a1c74c8a150cffe5880fb3bb (patch)
tree87422376dd9a7eee55850f0fce9a8bb4c13e44a2 /iredis/data/commands/asking.md
parentAdding upstream version 1.12.1. (diff)
downloadiredis-7480e618ec785ba8a1c74c8a150cffe5880fb3bb.tar.xz
iredis-7480e618ec785ba8a1c74c8a150cffe5880fb3bb.zip
Adding upstream version 1.13.0.upstream/1.13.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'iredis/data/commands/asking.md')
-rw-r--r--iredis/data/commands/asking.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/iredis/data/commands/asking.md b/iredis/data/commands/asking.md
new file mode 100644
index 0000000..d98643c
--- /dev/null
+++ b/iredis/data/commands/asking.md
@@ -0,0 +1,10 @@
+When a cluster client receives an `-ASK` redirect, the `ASKING` command is sent to the target node followed by the command which was redirected.
+This is normally done automatically by cluster clients.
+
+If an `-ASK` redirect is received during a transaction, only one ASKING command needs to be sent to the target node before sending the complete transaction to the target node.
+
+See [ASK redirection in the Redis Cluster Specification](/topics/cluster-spec#ask-redirection) for details.
+
+@return
+
+@simple-string-reply: `OK`.