Redis command to get all available channels for pub/sub?

Shuwn Yuan Tee picture Shuwn Yuan Tee · Nov 17, 2011 · Viewed 23.6k times · Source

I search through redis command list. I couldn't find the command to get all the available channels in redis pub/sub. In meteor server, the equivalent command is LISTCHANNELS, where it lists all known channels, the number of messages stored on each one and the number of current subscribers.

I have a cron that needs to periodically know about the available channels. Does redis have native command for this? Or I need to find a way to implement it myself?

Answer

nahelm picture nahelm · Jul 5, 2014

PUBSUB CHANNELS does this as of version 2.8.0.