COMMAND INFO command-name [command-name …]
相关命令
- BGREWRITEAOF
- BGSAVE
- CLIENT GETNAME
- CLIENT KILL
- CLIENT LIST
- CLIENT PAUSE
- CLIENT SETNAME
- CLUSTER SLOTS
- COMMAND
- COMMAND COUNT
- COMMAND GETKEYS
- COMMAND INFO
- CONFIG GET
- CONFIG RESETSTAT
- CONFIG REWRITE
- CONFIG SET
- DBSIZE
- DEBUG OBJECT
- DEBUG SEGFAULT
- FLUSHALL
- FLUSHDB
- INFO
- LASTSAVE
- MONITOR
- ROLE
- SAVE
- SHUTDOWN
- SLAVEOF
- SLOWLOG
- SYNC
- TIME
Available since 2.8.13.
时间复杂度: O(N) when N is number of commands to look up
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.
返回值
Array reply: nested list of command details.
例子
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
- 2) 1) "set"
- 2) (integer) -3
- 3) 1) write
- 2) denyoom
- 4) (integer) 1
- 5) (integer) 1
- 6) (integer) 1
- 3) 1) "eval"
- 2) (integer) -3
- 3) 1) noscript
- 2) movablekeys
- 4) (integer) 0
- 5) (integer) 0
- 6) (integer) 0
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 3) 1) "config" 2) (integer) -2 3) 1) readonly 2) admin 3) stale 4) (integer) 0 5) (integer) 0 6) (integer) 0 4) (nil)
This website is open source software developed by Citrusbyte.
The Redis logo was designed by Carlos Prioglio. See more credits.