*FUNCTION HELP 命令
返回 Redis 函数命令的帮助信息。Redis 7.0+ 引入。
*语法
FUNCTION HELP
*返回值
| 条件 | 返回值 |
|---|---|
| 总是 | 帮助文本数组 |
*时间复杂度
O(1)
*
*示例
> FUNCTION HELP
1) FUNCTION <subcommand> [<arg> [value] [opt] ...]. Subcommands are:
2) LOAD [REPLACE] <payload>
3) Create a new library with the compiled code.
4) DELETE <library-name>
5) Delete the library.
6) LIST [LIBRARYNAME <library-name>] [WITHCODE]
7) Return information about the functions.
8) FLUSH [ASYNC | SYNC]
9) Delete all the functions.
10) DUMP
11) Return a serialized payload of all the functions.
12) RESTORE <payload> [FLUSH | APPEND]
13) Restore the functions from the payload.
14) KILL
15) Kill the running function.
16) STATS
17) Return information about the function engine.
18) HELP
19) Print this help.
*FAQ
Q: FUNCTION HELP 和其他 HELP 命令有什么区别? A: 功能相同,都是返回对应命令子系统的帮助信息。