*PUBSUB HELP 命令
返回 Pub/Sub 命令的帮助信息。
*语法
PUBSUB HELP
*返回值
| 条件 | 返回值 |
|---|---|
| 总是 | 帮助文本数组 |
*时间复杂度
O(1)
*
*示例
> PUBSUB HELP
1) PUBSUB <subcommand> [<arg> [value] [opt] ...]. Subcommands are:
2) CHANNELS [pattern]
3) Return the active channels matching pattern.
4) NUMPAT
5) Return the number of pattern subscriptions.
6) NUMSUB [channel [channel ...]]
7) Return the number of subscribers for channels.
8) SHARDCHANNELS [pattern]
9) Return the active shard channels matching pattern.
10) SHARDNUMSUB [channel [channel ...]]
11) Return the number of subscribers for shard channels.
12) HELP
13) Print this help.
*FAQ
Q: PUBSUB HELP 和 PUBSUB CHANNELS 有什么区别? A: PUBSUB HELP 返回 PUBSUB 子命令的帮助;PUBSUB CHANNELS 返回活跃频道。