Skip to main content

PUBSUB NUMPAT

Syntax

PUBSUB NUMPAT

Module

pubsub

Categories

pubsub slow

Description

Return the number of patterns that are currently subscribed to by clients.

Examples

Return the number of patterns that are currently subscribed to by clients.

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
numOfPatterns, err := db.PubSubNumPat()