Redis Subscribe 命令
Redis 教程
· 2019-03-08 08:42:13
Redis Subscribe 命令用于订阅给定的一个或多个频道的信息。。
语法
redis Subscribe 命令基本语法如下:
redis 127.0.0.1:6379> SUBSCRIBE channel [channel ...]
可用版本
>= 2.0.0
返回值
接收到的信息
实例
redis 127.0.0.1:6379> SUBSCRIBE mychannel Reading messages... (press Ctrl-C to quit) 1) "subscribe" 2) "mychannel" 3) (integer) 1 1) "message" 2) "mychannel" 3) "a"
点击查看所有 Redis 教程 文章: https://www.codercto.com/courses/l/33.html
Programming Ruby
Dave Thomas、Chad Fowler、Andy Hunt / Pragmatic Bookshelf / 2004-10-8 / USD 44.95
Ruby is an increasingly popular, fully object-oriented dynamic programming language, hailed by many practitioners as the finest and most useful language available today. When Ruby first burst onto the......一起来看看 《Programming Ruby》 这本书的介绍吧!