python3操作redis(常用操作)安装导入连接通用操作操作字符串操作列表操作哈希操作集合操作有序集合
import redis #pip3 install redis==3.3.11client = redis.Redis(host="10.8.140.151",port=6379,password="123456",db=0)print(client.dbsize())print(client.set('name', 'test'))https://blog.csdn.net/whatday/article/details/104180853