pool = redis.ConnectionPool(host=REDIS_HOST, port=REDIS_PORT,max_connections=3,password=REDIS_PASSWORD) redis = redis.StrictRedis(connection_pool=pool) 相关文章: