ConnectionLike has a get_db method which returns the redis database id of the current database. This method is synchronous. Since we get the connection asynchronous it is not always possible to return the id in which case currently -1 is returned.
Possible solutions:
- The pooled connection can simply remember it.
- Keep it as it is
- something else?
ConnectionLikehas aget_dbmethod which returns the redis database id of the current database. This method is synchronous. Since we get the connection asynchronous it is not always possible to return the id in which case currently -1 is returned.Possible solutions: