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

Redis Unsubscribe Command

Redis Pub/Sub

The Redis Unsubscribe command is used to unsubscribe from one or more channels of information.

Syntax

Basic Syntax of Redis Unsubscribe Command

redis 127.0.0.1:6379> UNSUBSCRIBE channel [channel ...]

Available Versions

>= 2.0.0

Return Value

This command behaves differently in different clients.

Online Examples

redis 127.0.0.1:6379> UNSUBSCRIBE mychannel 
1) "unsubscribe"
2) "a"
3) (integer) 0

Redis Pub/Sub