Redis Pubsub Command

Redis Pub/Sub

The Redis Pubsub command is used to view the status of the publish/subscribe system. It consists of several subcommands in different formats.

Syntax

The basic syntax of the Redis Pubsub command is as follows:

redis 127.0.0.1:6379> PUBSUB <subcommand> [argument [argument ...]]

Available Versions

>= 2.8.0

Return Value

A list of active channels.

Example

redis 127.0.0.1:6379> PUBSUB CHANNELS
(empty list or set)

Redis Pub/Sub

Other Extensions