Back to Redis

PUBSUB SHARDCHANNELS

content/commands/pubsub-shardchannels.md

latest1.3 KB
Original Source

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.

Examples

> PUBSUB SHARDCHANNELS
1) "orders"
> PUBSUB SHARDCHANNELS o*
1) "orders"

Redis Software and Redis Cloud compatibility

| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | |

Return information

{{< multitabs id="pubsub-shardchannels-return-info" tab1="RESP2" tab2="RESP3" >}}

Array reply: a list of active channels, optionally matching the specified pattern.

-tab-sep-

Array reply: a list of active channels, optionally matching the specified pattern.

{{< /multitabs >}}