Latest web development tutorials

Redis Unsubscribe command

Redis publish and subscribe

Redis Unsubscribe command to unsubscribe to the information given to one or more channels.

grammar

redis Unsubscribe basic command syntax is as follows:

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

Available versions

> = 2.0.0

return value

This command has different manifestations in different clients.

Examples

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

Redis publish and subscribe