-
Notifications
You must be signed in to change notification settings - Fork 550
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
Client Side Caching #1089
base: main
Are you sure you want to change the base?
Client Side Caching #1089
Conversation
This is a very large PR, containing multiple layers of changes, which should be split into separate PRs in order to allow for better review.
|
Converting to draft for now as I have intended |
related to using a config object - #1147 (comment) |
Sorry, I don't know why I didn't answer this beforehand. I think that if you'll take client.get_tokio_connection_manager_with_config(ConnectionManagerConfig {
response_timeout: Duration::from_millis(10),
Default::default()
}) or client.get_tokio_connection_manager_with_config(
ConnectionManagerBuilder::new()
.set_response_timeout(Duration::from_millis(10))
.build()
}) completely removing ConnectionManagerBuilder::new(address)
.set_authentication(auth)
.set_response_timeout(Duration::from_millis(10))
.connect().await |
I also like the first approach, I'll wait for main branch to get this approach and rebase over it then. |
Hello everyone,
Client Side Caching is almost ready, just needs more command coverage and more testing.
I changed creating of new clients with ConnectionConfig because I think it will be ugly to repeating with_cache functions everywhere.
I had to change pin-project-lite to pin-project since lite pin-project-lite doesn't support cfg feature in it.