Support of BlockingConnectionPool
Hi there,
aredis is lacking of BlockingConnectionPool.
Do this kind of feature could be accepted if I propose a Pull Request? (and if it matches all the projects requirements and worked, of course :) )
I have started to take a look, the only blocking point I see is a small change into the ConnectionPool API.
ConnectionPool.get_connection() have to become async to be able to use asyncio.Queue()
Is that API change, ok ?
Another solution that would not break the API, would be to replace all get_connection() calls with something like:
conn = pool.get_connection()
if asyncio.iscoroutine(conn):
conn = await conn
Here an idea of what it will looks like: https://github.com/NoneGG/aredis/pull/190
Any updates?
Any updates?