Pub/Sub
Publish and subscribe: messages on channels, pattern subscriptions, and shard channels for clusters.
PING: Checks that the server answers.PSUBSCRIBE: Subscribes this connection to every channel matching a glob-style pattern.PUBLISH: Sends message to every client subscribed to channel, with SUBSCRIBE, or to a pattern that matches it, with PSUBSCRIBE.PUBSUB: PUBSUB is a container: its subcommands report on the channels and patterns clients are subscribed to.PUBSUB CHANNELS: Returns the channels that at least one client is subscribed to with SUBSCRIBE, sorted.PUBSUB HELP: Lists the PUBSUB subcommands, one line each with its arguments, followed by an indented line saying what it does: CHANNELS, NUMPAT, NUMSUB, SHARDCHANNELS, SHARDNUMSUB and HELP.PUBSUB NUMPAT: Returns how many distinct patterns clients are subscribed to with PSUBSCRIBE.PUBSUB NUMSUB: Returns, for each channel named, how many clients are subscribed to it with SUBSCRIBE.PUBSUB SHARDCHANNELS: Returns the shard channels that at least one client is subscribed to with SSUBSCRIBE, sorted.PUBSUB SHARDNUMSUB: Returns, for each shard channel named, how many clients are subscribed to it with SSUBSCRIBE.
PUNSUBSCRIBE: Unsubscribes this connection from patterns, or from all of them if none is given.QUIT: Asks the server to close the connection.RESET: Puts the connection back as it was when it was opened: unsubscribed from everything, out of any transaction and with no keys watched, on database 0, speaking RESP2, with no name and no client-side ca…SPUBLISH: Sends message to the clients subscribed to the shard channel shardchannel with SSUBSCRIBE.SSUBSCRIBE: Subscribes this connection to shard channels.SUBSCRIBE: Subscribes this connection to channels.SUNSUBSCRIBE: Unsubscribes this connection from shard channels, or from all of them if none is given.UNSUBSCRIBE: Unsubscribes this connection from channels, or from all of them if none is given.