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
# 对没有订阅者的频道发送信息 redis> publish bad_channel "can any body hear me?" (integer) 0 # 向有一个订阅者的频道发送信息 redis> publish msg "good morning" (integer) 1 # 向有多个订阅者的频道发送信息 redis> publish chat_room "hello~ everyone" (integer) 3