Python连接redis

import redis

pool = redis.ConnectionPool(host='127.0.0.1',port=6379,password='123456')
r = redis.Redis(connection_pool=pool)

flushall #用于清除所有的库所有key数据
原文地址:https://www.cnblogs.com/yinliang-liang/p/10344891.html