PUBSUB-S...CHANNELS(3valkey)
π PUBSUB-SHARDCHANNELS π
okay bestie, welcome to the Valkey Command Manual β this one's pubsub-shardchannels, page (3valkey), and it's genuinely so simple you're gonna eat π
β¨ NAME β¨
pubsub-shardchannels β Returns the active shard channels.
πΈ SYNOPSIS πΈ
PUBSUB SHARDCHANNELS [pattern]
π¦ DESCRIPTION π¦
So basically it lists the currently active shard channels. That's it, that's the whole vibe. π«Ά
An active shard channel is a Pub/Sub shard channel with one or more subscribers. No subscribers? Not active. Not on the list. It's giving "if you don't show up, you don't get mentioned." π
If no pattern is specified, all the channels are listed. But if pattern is specified, only channels matching that specified glob-style pattern get listed. Iconic filtering behaviour, no cap. β¨
lowkey important: the info returned about the active shard channels is at the shard level and not at the cluster level. Remember that. It matters. π
π REPLY π
valkey-protocol(7) Array reply: a list 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). Fast. Snappy. Main character energy. β
π ACL CATEGORIES π
@pubsub@slow
π HISTORY π
- Available since: 7.0.0
π EXAMPLES π
> PUBSUB SHARDCHANNELS
1) "orders"
> PUBSUB SHARDCHANNELS o*
1) "orders"
look at that. clean. orders showed up both times because it's literally that girl. π
π 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)
okay that's the whole page, you understood all of it, slay π
Valkey version 9.0.0, dated 2025-10-21 β mwah, bye bestie, go check your shard channels πβ¨π¦
π¦ where this page comes from
- fedora 44: valkey-doc 9.0.3-2.fc44 Β· CC-BY-SA-4.0
- fedora 44: valkey-doc 9.0.6-1.fc44 Β· CC-BY-SA-4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms