Redis PUNSUBSCRIBE 命令从给定的模式中取消订阅客户端,如果没有给出模式,则从所有模式中取消订阅。
以下是Redis PUNSUBSCRIBE 命令的基本语法。
链接:https://www.learnfk.comhttps://www.learnfk.com/redis/pub-sub-punsubscribe.html
来源:LearnFk无涯教程网
redis 127.0.0.1:6379> PUNSUBSCRIBE [pattern [pattern ...]]
返回数组。
redis 127.0.0.1:6379> PUNSUBSCRIBE mychannel 1) "punsubscribe" 2) "a" 3) (integer) 1
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)