Redis Unsubscribe 命令
Redis Unsubscribe 命令用于退訂給定的一個(gè)或多個(gè)頻道的信息。
語法
redis Unsubscribe 命令基本語法如下:
redis 127.0.0.1:6379> UNSUBSCRIBE channel [channel ...]
可用版本
>= 2.0.0
返回值
這個(gè)命令在不同的客戶端中有不同的表現(xiàn)。
實(shí)例
redis 127.0.0.1:6379> UNSUBSCRIBE mychannel 1) "unsubscribe" 2) "a" 3) (integer) 0