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 there a read from option in redis-cluster? #2727

Closed
NirmalP29 opened this issue Apr 1, 2024 · 2 comments
Closed

Is there a read from option in redis-cluster? #2727

NirmalP29 opened this issue Apr 1, 2024 · 2 comments

Comments

@NirmalP29
Copy link

Motivation

Are the following read from methods available?
Any
Masters
Slaves
Preffered Slaves
Preferred Masters

Basic Code Example

No response

@leibale
Copy link
Collaborator

leibale commented Apr 1, 2024

By default RedisCluster will only use "masters", you can use the useReplicas to distribute read-only commands to replicas as well.
There is no support for preferred masters or replicas, can you elaborate more on the use case?

@NirmalP29
Copy link
Author

NirmalP29 commented Apr 1, 2024

for me Any will work
https://github.com/redis/lettuce/wiki/ReadFrom-Settings#read-from-settings
lettuce offers more options so, I was checking if these options are there.

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