Easy Tutorial
❮ Server Client Getname Strings Incrby ❯

Redis Punsubscribe Command

Redis Pub/Sub

The Redis Punsubscribe command is used to unsubscribe from all channels matching the given patterns.

Syntax

The basic syntax for the redis Punsubscribe command is as follows:

redis 127.0.0.1:6379> PUNSUBSCRIBE [pattern [pattern ...]]

Available Versions

= 2.0.0

Return Value

This command behaves differently in different clients.

Example

redis 127.0.0.1:6379> PUNSUBSCRIBE mychannel
1) "punsubscribe"
2) "a"
3) (integer) 1

Redis Pub/Sub

❮ Server Client Getname Strings Incrby ❯