PUBSUB SHARDCHANNELS
PUBSUB SHARDCHANNELS [pattern]
- Available since:
- Redis Open Source 7.0.0
- Time 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, - Compatibility:
- Redis Software and Redis Cloud compatibility
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.
Optional arguments
pattern
List only active shard channels whose names match the given glob-style pattern. If omitted, all active shard channels are listed.
Examples
> PUBSUB SHARDCHANNELS
1) "orders"
> PUBSUB SHARDCHANNELS o*
1) "orders"
Redis Software and Redis Cloud compatibility
| Redis Software |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Standard |
✅ Standard |
Return information
Array reply: a list of active channels, optionally matching the specified pattern.