Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefix redis channels with redis db id #202

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

icewind1991
Copy link
Member

fixes #127

Signed-off-by: Robin Appelman [email protected]

fixes #127

Signed-off-by: Robin Appelman <[email protected]>
@ldidry
Copy link

ldidry commented Jan 16, 2024

Any news on that PR? What’s preventing the merge?

@@ -34,7 +34,7 @@ public function __construct($redis) {
}

public function push(string $channel, $message) {
$this->redis->publish($channel, json_encode($message));
$this->redis->publish($this->redis->getDbNum() . '_' . $channel, json_encode($message));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't use the database number as a discriminator because if you're using a Redis cluster, there's only one database. Instead, you should use NEXTCLOUD_URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple instances running on same server interfere with each other
2 participants