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

Allow passing routing information to cluster. #899

Merged
merged 9 commits into from
Sep 18, 2023

Conversation

nihohit
Copy link
Contributor

@nihohit nihohit commented Jul 23, 2023

This PR is based over #900 .

This change allows the user to specify routing information for commands. This is especially helpful for commands that don't have an explicit request policy, such as BGSAVE, and so are sent to a random node.

@nihohit
Copy link
Contributor Author

nihohit commented Sep 12, 2023

@jaymell rebased

@jaymell
Copy link
Contributor

jaymell commented Sep 17, 2023

Thanks for the PR! Looking beautiful so far.

redis/src/cluster_routing.rs Outdated Show resolved Hide resolved
redis/src/cluster_routing.rs Outdated Show resolved Hide resolved
redis/src/cluster_routing.rs Outdated Show resolved Hide resolved
redis/src/cluster_routing.rs Show resolved Hide resolved
redis/src/cluster_routing.rs Outdated Show resolved Hide resolved
redis/src/cluster_routing.rs Outdated Show resolved Hide resolved
redis/src/cluster_routing.rs Outdated Show resolved Hide resolved
redis/src/cluster_routing.rs Outdated Show resolved Hide resolved
redis/src/cluster_async/mod.rs Outdated Show resolved Hide resolved
redis/tests/test_cluster_async.rs Show resolved Hide resolved
nihohit and others added 6 commits September 17, 2023 19:22
This will allow users to implement their own Routables, and find their
own routing.
Co-authored-by: James Lucas <jaymell@users.noreply.github.com>
@nihohit nihohit merged commit 5e977e9 into redis-rs:main Sep 18, 2023
8 of 10 checks passed
@nihohit nihohit deleted the send-route branch September 18, 2023 08:01
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.

None yet

2 participants