Redis – Sub Pubsub Command

  • Post author:
  • Post category:Redis
  • Post comments:1 Comment

Redis PUBSUB command is an introspection command that allows to inspect the state of the Pub/Sub subsystem. It is composed of subcommands that are documented separately.

Syntax

Following is the basic syntax of Redis PUBSUB command.

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

Return Value

Array reply, a list of active channels.

Example

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

This Post Has One Comment

Leave a Reply