Redis 命令

PSUBSCRIBE pattern [pattern ...]

Listen for messages published to channels matching the given patterns

PUBSUB subcommand [argument [argument ...]]

Inspect the state of the Pub/Sub subsystem

PUBLISH channel message

Post a message to a channel

PUNSUBSCRIBE [pattern [pattern ...]]

Stop listening for messages posted to channels matching the given patterns

SUBSCRIBE channel [channel ...]

Listen for messages published to the given channels

UNSUBSCRIBE [channel [channel ...]]

Stop listening for messages posted to the given channels

原文地址:https://www.cnblogs.com/huey/p/4351321.html