Redis publish/subscribe: see what channels are currently subscribed to

后端 未结 5 1673
Happy的楠姐
Happy的楠姐 2021-02-05 14:37

I am currently interested in seeing what channels are subscribed to in a Redis pub/sub application I have. When a client connects to our server, we register them to a channel th

5条回答
  •  庸人自扰
    2021-02-05 14:40

    * PUBSUB NUMSUB [channel-1 ... channel-N]
    Returns the number of subscribers (not counting clients subscribed to patterns) for the specified channels. https://redis.io/commands/pubsub

提交回复
热议问题