Lists the currently active channels.
Lists the currently active channels. An active channel is a Pub/Sub channel with one or more subscribers (not including clients subscribed to patterns).
optional pattern to filter returned channels
the currently active channels, optionally matching the specified pattern
2.8.0
If no pattern is specified, all the channels are listed, otherwise if pattern is specified only channels matching the specified glob-style pattern are listed.
Returns the number of subscriptions to patterns (that are performed using the PSUBSCRIBE command).
Returns the number of subscriptions to patterns (that are performed using the PSUBSCRIBE command).
the number of subscriptions to patterns
2.8.0
Note that this is not just the count of clients subscribed to patterns but the total number of patterns all the clients are subscribed to.
Returns the number of subscribers (not counting clients subscribed to patterns) for the specified channels.
Returns the number of subscribers (not counting clients subscribed to patterns) for the specified channels.
channel name(s)
a map of channels to number of subscribers for every provided channel
2.8.0
Publishes a message to a channel.
Publishes a message to a channel.
the name of the channel
the message payload
the number of clients that received the message
2.0.0
This trait implements pub/sub commands.