is there a way to get the number of channel subscriptions to a specific Redis channel through the StackExchange.Redis library? When interacting with Redis directly, it would work with the PUBSUB NUMSUB command (http://redis.io/commands/pubsub) but I don't see an equivalent call in the C# client library.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
This is a server command (as opposed to a database command), so the same guidance applies as for
KEYS
,SCAN
,FLUSHDB
, etc. Short version: useGetServer()
. Longer version: read the linked article above.The
PUBSUB
methods are:PUBSUB CHANNELS
:server.SubscriptionChannels[Async](...)
PUBSUB NUMPAT
:server.SubscriptionPatternCount[Async](...)
PUBSUB NUMSUB
:server.SubscriptionSubscriberCount[Async](...)