PUBSUB SHARDNUMSUB [shardchannel [shardchannel ...]]
@pubsub,
@slow,
Returns the number of subscribers for the specified shard channels.
Note that it is valid to call this command without channels, in this case it will just return an empty list.
Cluster note: in a Redis Cluster, PUBSUB's replies in a cluster only report information from the node's Pub/Sub context, rather than the entire cluster.
> PUBSUB SHARDNUMSUB orders
1) "orders"
2) (integer) 1
| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Standard ✅ Active-Active |
✅ Standard ✅ Active-Active |