UK[?p?bl??] US[?p?bl??]
vt.& vi. Publish, issue; publish, announce (marriage, etc.); announce, promulgate; publish... the work of...
Third person Singular: publishes Present participle: publishing Past tense: published Past participle: published
redis PUBLISH command syntax
Function:Send information message to the specified channel channel.
Syntax: PUBLISH channel message
Available versions:>= 2.0.0
Time complexity : O(N M), where N is the number of subscribers to the channel channel, and M is the number of clients using subscribed patterns.
Return: The number of subscribers who received the message.
redis PUBLISH command example
# 對(duì)沒(méi)有訂閱者的頻道發(fā)送信息 redis> publish bad_channel "can any body hear me?" (integer) 0 # 向有一個(gè)訂閱者的頻道發(fā)送信息 redis> publish msg "good morning" (integer) 1 # 向有多個(gè)訂閱者的頻道發(fā)送信息 redis> publish chat_room "hello~ everyone" (integer) 3