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

Is pub/sub supported in cluster mode? #8

Closed
sbluemin opened this issue Jan 23, 2019 · 1 comment
Closed

Is pub/sub supported in cluster mode? #8

sbluemin opened this issue Jan 23, 2019 · 1 comment

Comments

@sbluemin
Copy link

Hi, i want pub/sub with cluster mode.

Is it supported?

Your project is very useful!

Thank you!

@sewenew
Copy link
Owner

sewenew commented Jan 23, 2019

Yes, RedisCluster supports pub/sub, it has the same interface as Redis. You can use RedisCluster::publish method to publish messages, and use RedisCluster::subscriber to create a subscriber, and consume messages with the subscriber. Check the doc for details. It also have an example on how to subscribe.

P.S. I'm glad that you like redis-plus-plus. If you have any problem, feel free to let me know.

Regards

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

No branches or pull requests

2 participants