Redis Publish 命令
Redis 教程
· 2019-03-08 08:14:39
Redis Publish 命令用于将信息发送到指定的频道。
语法
redis Publish 命令基本语法如下:
redis 127.0.0.1:6379> PUBLISH channel message
可用版本
>= 2.0.0
返回值
接收到信息的订阅者数量。
实例
redis 127.0.0.1:6379> PUBLISH mychannel "hello, i m here" (integer) 1
点击查看所有 Redis 教程 文章: https://codercto.com/courses/l/33.html
PHP Hacks
Jack Herrington D. / O'Reilly Media / 2005-12-19 / USD 29.95
Programmers love its flexibility and speed; designers love its accessibility and convenience. When it comes to creating web sites, the PHP scripting language is truly a red-hot property. In fact, PH......一起来看看 《PHP Hacks》 这本书的介绍吧!