Get the App
SLTechnology News&Howtos  ›  Development  › 

Sample Analysis of redis deployment and usage commands of various data types

Shulou Source: shulou.com Published: 2022-06-01 07:12:01 10月03日 Update

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!

Tags: Subscription type data command element time message channel character string subscriber configuration multiple right time compilation publisher that is member file Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft OPPO Reno Docker Redmi MySQL