Redis PUBLISH命令發佈消息的管道。
語法
Redis PUBLISH命令基本語法如下所示:
redis 127.0.0.1:6379> PUBLISH channel message
返回值
返回整數:該接收到的消息的客戶端數。
例子
redis 127.0.0.1:6379> PUBLISH mychannel "hello, i m here" (integer) 1
上一篇:
下一篇:
Redis環境安裝配置