summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/command-getkeys.md
diff options
context:
space:
mode:
Diffstat (limited to 'iredis/data/commands/command-getkeys.md')
-rw-r--r--iredis/data/commands/command-getkeys.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/iredis/data/commands/command-getkeys.md b/iredis/data/commands/command-getkeys.md
new file mode 100644
index 0000000..1c591f1
--- /dev/null
+++ b/iredis/data/commands/command-getkeys.md
@@ -0,0 +1,21 @@
+Returns @array-reply of keys from a full Redis command.
+
+`COMMAND GETKEYS` is a helper command to let you find the keys from a full Redis
+command.
+
+`COMMAND` shows some commands as having movablekeys meaning the entire command
+must be parsed to discover storage or retrieval keys. You can use
+`COMMAND GETKEYS` to discover key positions directly from how Redis parses the
+commands.
+
+@return
+
+@array-reply: list of keys from your command.
+
+@examples
+
+```cli
+COMMAND GETKEYS MSET a b c d e f
+COMMAND GETKEYS EVAL "not consulted" 3 key1 key2 key3 arg1 arg2 arg3 argN
+COMMAND GETKEYS SORT mylist ALPHA STORE outlist
+```