当前位置:网站首页>Redis publish subscribe command line implementation

Redis publish subscribe command line implementation

2022-07-05 06:07:00 A light wind and light clouds

  1. Open a client subscription channel1

        SUBSCRIBE channel1

2、 Open another client , to channel1 Release the news hello 

publish channel1 hello

Back to 1 Is the number of subscribers

Open the first client to see the sent message

  notes : Published messages are not persistent , If the subscription client does not receive hello, Only messages published after subscription can be received

 

原网站

版权声明
本文为[A light wind and light clouds]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050600068621.html