r2d2-redis icon indicating copy to clipboard operation
r2d2-redis copied to clipboard

Add support redis's async/await connection support? `client.get_async_connection()`

Open curiousdev opened this issue 3 years ago • 0 comments

I'm happy to submit a PR. Though I may need a little guidance.

The new version of the redis crate supports async/await operations. Usage of this requires, the pooled connections to be retrieved using the new client.get_async_connection(). Currently the RedisConnectionManager relies on the original synchronous get_connection(), thereby limiting users only to the synchronous operations.

I would like to add the async/await support. I propose creating RedisAsyncConnectionManager who's fn connect(&self) method uses client.get_async_connection().

Would you be willing to accept a PR to address this? Any advice would be appreciated.

curiousdev avatar Oct 24 '20 07:10 curiousdev