import redis pool = redis.ConnectionPool(host=‘127.0.0.1‘,port=6379,password=‘123456‘) r = redis.Redis(connection_pool=pool) flushall #用于清除所有的库所有key数据
Python连接redis
原文:https://www.cnblogs.com/yinliang-liang/p/10344891.html