COMMAND GETKEYSANDFLAGS

COMMAND GETKEYSANDFLAGS command [arg [arg ...]]
Available since:
Redis Open Source 7.0.0
Time complexity:
O(N) where N is the number of arguments to the command
ACL categories:
@slow, @connection,
Compatibility:
Redis Software and Redis Cloud compatibility

COMMAND GETKEYSANDFLAGS is a helper command to let you find the keys from a full Redis command, together with flags that indicate what each key is used for.

COMMAND describes how Redis identifies key names for each command, including firstkey, key specifications, and movablekeys. For some commands, Redis can identify the keys only by parsing the full command. Use COMMAND GETKEYS or COMMAND GETKEYSANDFLAGS to get key names directly from the Redis command parser.

Refer to key specifications for information about the meaning of the key flags.

Required arguments

command

The name of the command to analyze.

Optional arguments

arg [arg ...]

The arguments that would be passed to the command.

Examples

COMMAND GETKEYS MSET a b c d e f COMMAND GETKEYS EVAL "not consulted" 3 key1 key2 key3 arg1 arg2 arg3 argN COMMAND GETKEYSANDFLAGS LMOVE mylist1 mylist2 left left

Redis Software and Redis Cloud compatibility

Redis
Software
Redis
Cloud
Notes
✅ Standard
✅ Active-Active
✅ Standard
✅ Active-Active

Return information

Array reply: a list of keys from the given command and their usage flags.
RATE THIS PAGE
Back to top ↑