StackExchange.Redis: Get channel signature count (i.e. PUBSUB NUMSUB)

Is there a way to get the number of channel subscribers to a specific Redis channel through the StackExchange.Redis library? When interacting directly with Redis, it will work with the PUBSUB NUMSUB team ( http://redis.io/commands/pubsub ), but I don't see an equivalent call in C # to the client library.

+3


source to share


1 answer


This server command (as opposed to the database commands), so the same guide used for both KEYS

, SCAN

, FLUSHDB

,, etc.
... Short version: use GetServer()

. Longer version: read the linked article above.

Methods PUBSUB

:



  • PUBSUB CHANNELS

    : server.SubscriptionChannels[Async](...)

  • PUBSUB NUMPAT

    : server.SubscriptionPatternCount[Async](...)

  • PUBSUB NUMSUB

    : server.SubscriptionSubscriberCount[Async](...)

+4


source







All Articles