Skip to content
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

Find a solution for the get_db operation #68

Open
chridou opened this issue May 22, 2020 · 0 comments
Open

Find a solution for the get_db operation #68

chridou opened this issue May 22, 2020 · 0 comments
Labels
question Further information is requested

Comments

@chridou
Copy link
Owner

chridou commented May 22, 2020

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?
@chridou chridou added the question Further information is requested label May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant