W3cubDocs

/Redis

COMMAND

COMMAND INFO command-name [command-name ...]

Returns Array reply of details about multiple Redis commands.

Same result format as COMMAND except you can specify which commands get returned.

If you request details about non-existing commands, their return position will be nil.

Return value

Array reply: nested list of command details.

Examples

redis> COMMAND INFO get set eval 1) 1) "get" 2) (integer) 2 3) 1) "readonly" 2) "fast" 4) (integer) 1 5) (integer) 1 6) (integer) 1 7) 1) "@read" 2) "@string" 3) "@fast" 2) 1) "set" 2) (integer) -3 3) 1) "write" 2) "denyoom" 4) (integer) 1 5) (integer) 1 6) (integer) 1 7) 1) "@write" 2) "@string" 3) "@slow" 3) 1) "eval" 2) (integer) -3 3) 1) "noscript" 2) "movablekeys" 4) (integer) 0 5) (integer) 0 6) (integer) 0 7) 1) "@slow" 2) "@scripting" redis> COMMAND INFO foo evalsha config bar 1) (nil) 2) 1) "evalsha" 2) (integer) -3 3) 1) "noscript" 2) "movablekeys" 4) (integer) 0 5) (integer) 0 6) (integer) 0 7) 1) "@slow" 2) "@scripting" 3) 1) "config" 2) (integer) -2 3) 1) "admin" 2) "noscript" 3) "loading" 4) "stale" 4) (integer) 0 5) (integer) 0 6) (integer) 0 7) 1) "@admin" 2) "@slow" 3) "@dangerous" 4) (nil)

© 2009–2020 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/command-info