代潇瑞博客

publish 命令/方法/函数

Description

Publish messages to channels. Warning: this function will probably change in the future.

将消息发布到信道。警告:这个功能可能会在未来发生变化。


Parameters

channel: a channel to publish to

messsage: string


Example

$redis->publish('chan-1', 'hello, world!'); // send message.

【相关命令】

触屏版 | 电脑版

Copyright © 2013 代潇瑞博客手机版

QQ: 446673330

粤ICP备13071969号-1