bikeshedder / deadpool

Dead simple pool implementation for rust with async-await
Apache License 2.0
1.08k stars 137 forks source link

Allow configuring Redis connections via AsyncConnectionConfig #357

Open Louis-Tarvin opened 2 months ago

Louis-Tarvin commented 2 months ago

Currently, deadpool-redis doesn't provide any way to modify the MultiplexedConnection configuration (e.g. to set connection or response timeouts). This PR addresses this by implementing a new constructor for the Manager, new_with_connection_config, that lets the user provide an AsyncConnectionConfig to the Manager, such that we can construct the connection via get_multiplexed_async_connection_with_config.

Please let me know if there's anything I have missed or if you'd rather this be done differently.