English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Redis Punsubscribe Command

Redis Pub/Sub

The Redis Punsubscribe command is used to unsubscribe from all given channels with specified patterns.

Syntax

Basic Syntax of redis Punsubscribe Command

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

Available Versions

>= 2.0.0

Return Value

This command behaves differently in different clients.

Online Examples

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

Redis Pub/Sub