PUBSUB

Since 1.1.0Pub/Sub

Syntax

PUBSUB
  • Flags: pubsub
  • ACL categories: @pubsub, @slow
  • Arity: -2

Reports on the channels and patterns clients are subscribed to. See its subcommands.

Subcommands

  • PUBSUB CHANNELS: Returns the channels with at least one subscriber, or those matching a glob-style pattern.
  • PUBSUB HELP: Lists the PUBSUB subcommands and what each does.
  • PUBSUB NUMPAT: Returns how many pattern subscriptions there are, from all clients together.
  • PUBSUB NUMSUB: Returns how many clients are subscribed to each of the given channels, not counting pattern subscriptions.
  • PUBSUB SHARDCHANNELS: Returns the shard channels with at least one subscriber, or those matching a glob-style pattern.
  • PUBSUB SHARDNUMSUB: Returns how many clients are subscribed to each of the given shard channels.