Redis Psubscribe 命令
Redis 教程
· 2019-03-08 07:44:39
Redis Psubscribe 命令订阅一个或多个符合给定模式的频道。
每个模式以 * 作为匹配符,比如 it* 匹配所有以 it 开头的频道( it.news 、 it.blog 、 it.tweets 等等)。 news.* 匹配所有以 news. 开头的频道( news.it 、 news.global.today 等等),诸如此类。
语法
redis Psubscribe 命令基本语法如下:
redis 127.0.0.1:6379> PSUBSCRIBE pattern [pattern ...]
可用版本
>= 2.0.0
返回值
接收到的信息。
实例
redis 127.0.0.1:6379> PSUBSCRIBE mychannel Reading messages... (press Ctrl-C to quit) 1) "psubscribe" 2) "mychannel" 3) (integer) 1
点击查看所有 Redis 教程 文章: https://www.codercto.com/courses/l/33.html
A Byte of Python
Swaroop C H / Lulu Marketplace / 2008-10-1 / USD 27.98
'A Byte of Python' is a book on programming using the Python language. It serves as a tutorial or guide to the Python language for a beginner audience. If all you know about computers is how to save t......一起来看看 《A Byte of Python》 这本书的介绍吧!