Easy Tutorial
❮ Redis Php Hashes Hgetall ❯

Redis Pubsub Commands

Redis Publish Subscribe

Redis Pubsub commands are used to check the status of the subscription and publishing system, consisting of several subcommands with different formats.

Syntax

The basic syntax for redis Pubsub commands 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 Publish Subscribe

❮ Redis Php Hashes Hgetall ❯