*SCRIPT HELP 命令
返回脚本命令的帮助信息。
*语法
SCRIPT HELP
*返回值
| 条件 | 返回值 |
|---|---|
| 总是 | 帮助文本数组 |
*时间复杂度
O(1)
*
*示例
> SCRIPT HELP
1) SCRIPT <subcommand> [<arg> [value] [opt] ...]. Subcommands are:
2) DEBUG (yes | no | sync)
3) Set the debug mode for scripts.
4) EXISTS sha1 [sha1 ...]
5) Check if a script exists in the script cache.
6) FLUSH [ASYNC | SYNC]
7) Flush the Lua scripts cache.
8) KILL
9) Kill the currently running script.
10) LOAD script
11) Load a script into the scripts cache.
12) HELP
13) Print this help.
*FAQ
Q: SCRIPT HELP 和 SCRIPT LOAD 有什么区别? A: SCRIPT HELP 返回 SCRIPT 子命令的帮助;SCRIPT LOAD 加载 Lua 脚本到缓存。