参考自https://github.com/andymccurdy/redis-py/issues/681

r.connection_pool.disconnect()