COMMAND GETKEYS command [arg [arg ...]]
- Available since:
- Time complexity:
- O(N) where N is the number of arguments to the command
- ACL categories:
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 provides information on how to find the key names of each command (see
firstkey, key specifications, and
but in some cases it's not possible to find keys of certain commands and then the entire command must be parsed to discover some / all key names.
You can use
COMMAND GETKEYS or
COMMAND GETKEYSANDFLAGS to discover key names directly from how Redis parses the commands.