pip3 install tornado-redis
import tornadoredis
import tornadoredis CONNECTION_POOL = tornadoredis.ConnectionPool(max_connections=100, wait_for_available=True) c = tornadoredis.Client(host="127.0.0.1", port="6379", connection_pool=CONNECTION_POOL) #c就是redis对象
点击传送
都是redis对象,方法大同小异