Loading...
还是新建一个 redis_db.pyimport redis try: pool = redis.ConnectionPool( host="localhost", port=6379, password='', db=0, max_connections=100...
首先创建一个redis_db.py,用来建立redis链接,具体的参数自己调整。import redis try: pool = redis.ConnectionPool( host="localhost", port=6379, password='', db=0, ...