Sample Analysis of redis deployment and usage commands of various data types
When the publisher publishes the message, subscriber 1 receives a message from the subscription channel python
When the publisher publishes to the linux channel, both subscribers receive the message. The publisher also returns several subscribers who have received the message. The above post is miswritten and posted to a channel that no one subscribes to, returning 0 subscribers.
The channels published by the publisher and the channels received by the publisher need to be accurately judged and cannot vaguely match the received messages.
When subscribers use psubscribe here, the latter becomes a pattern
When the subscriber uses the psubscribe command and the subscribed channel uses wildcards, the channel published by the publisher that can vaguely match the subscriber is received by the subscriber.
Thank you for reading! This is the end of this article on "sample analysis of redis deployment and commands for various data types". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!