109-redis message sending and subscription

1), subscribers of the message subscribe to the channel: subscribe channel 1 [channel 2 ....]
  subscribe ch1 ch2 ch3
2), publish messages to the channel: publish channel number message content
  publish ch1 hello
3), subscribers of the message Channel: psubcribe channel number (supports wildcards)
  psubscribe news. *

Guess you like

Origin www.cnblogs.com/pogusanqian/p/12700154.html