PUBSUB CHANNELS
Syntax
PUBSUB CHANNELS [pattern]
Module
pubsubCategories
pubsub slowDescription
Returns an array containing the list of channels that
Examples
- Go (Embedded)
- CLI
Returns an array containing the list of channels that match the given pattern. If no pattern is provided, all active channels are returned. Active channels are channels with 1 or more subscribers.
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
channels, err := db.PubSubChannels("channel*")
Returns an array containing the list of channels that match the given pattern. If no pattern is provided, all active channels are returned. Active channels are channels with 1 or more subscribers.
> PUBSUB CHANNELS channel*