MCPcopy Create free account
hub / github.com/F-Stack/f-stack / clientSubscriptionsCount

Function clientSubscriptionsCount

app/redis-6.2.6/src/pubsub.c:128–131  ·  view source on GitHub ↗

Return the number of channels + patterns a client is subscribed to. */

Source from the content-addressed store, hash-verified

126
127/* Return the number of channels + patterns a client is subscribed to. */
128int clientSubscriptionsCount(client *c) {
129 return dictSize(c->pubsub_channels)+
130 listLength(c->pubsub_patterns);
131}
132
133/* Subscribe a client to a channel. Returns 1 if the operation succeeded, or
134 * 0 if the client was already subscribed to that channel. */

Callers 6

addReplyPubsubSubscribedFunction · 0.85
unsubscribeCommandFunction · 0.85
punsubscribeCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected