pubsub-shardchannels.3valkey - Man Page
Returns the active shard channels.
Synopsis
PUBSUB SHARDCHANNELS [pattern]
Description
Lists the currently active shard channels.
An active shard channel is a Pub/Sub shard channel with one or more subscribers.
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.
The information returned about the active shard channels are at the shard level and not at the cluster level.
Reply
Array of active channels, optionally matching the specified pattern.
Complexity
O(N) where N is the number of active shard channels, and assuming constant time pattern matching (relatively short shard channels).
Acl Categories
@pubsub @slow
History
- Available since: 7.0.0
Examples
> PUBSUB SHARDCHANNELS 1) "orders" > PUBSUB SHARDCHANNELS o* 1) "orders"
See Also
psubscribe(3valkey), publish(3valkey), pubsub(3valkey), pubsub-channels(3valkey), pubsub-help(3valkey), pubsub-numpat(3valkey), pubsub-numsub(3valkey), pubsub-shardnumsub(3valkey), punsubscribe(3valkey), spublish(3valkey), ssubscribe(3valkey), subscribe(3valkey), sunsubscribe(3valkey), unsubscribe(3valkey)