I use Django cache.I know Redis is thead-safe.
If BlockingConnectionPool is necessary, when I configure CACHE.
What does BlockingConnectionPool do?
When I need use BlockingConnectionPool?
According to the official docs The "Blocking" in BlockingConnectionPool is not a reference to thread-safety, but rather to the fact that if there's no connection available this implementation will wait (block) for a specified number of seconds (timeout param) until one becomes available.
# Raises ConnectionError if connection is not available within before 10s timeout
pool = BlockingConnectionPool(timeout=10)
Specifying timeout=None will block indefinitely.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With