Skip to main content

PUBSUB CHANNELS

Syntax​

PUBSUB CHANNELS [pattern]

Module​

pubsub

Categories​

pubsub slow

Description​

Returns an array containing the list of channels that

Examples​

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*")