摘要: from redis import StrictRedis,ConnectionPool import time pool = ConnectionPool(host='127.0.0.1',port=6379,db=0,password='') key = StrictRedis(connecti 阅读全文
posted @ 2022-06-13 12:32 有基友拉我裤链 阅读(18) 评论(0) 推荐(0) 编辑
摘要: from redis import StrictRedis,ConnectionPool # pool = ConnectionPool(host='127.0.0.1',port=6379,db=0,password='') # key = StrictRedis(connection_pool= 阅读全文
posted @ 2022-06-13 12:32 有基友拉我裤链 阅读(18) 评论(0) 推荐(0) 编辑
摘要: from redis import StrictRedis,ConnectionPool import time pool = ConnectionPool(host='127.0.0.1',port=6379,db=0,password='') key = StrictRedis(connecti 阅读全文
posted @ 2022-06-13 12:31 有基友拉我裤链 阅读(15) 评论(0) 推荐(0) 编辑
摘要: # 引入redis模块的StrctRedis和ConnentionPool方法 from redis import StrictRedis,ConnectionPool # 引入时间模块 import time # 连接redis数据库 pool = ConnectionPool(host='127 阅读全文
posted @ 2022-06-13 12:30 有基友拉我裤链 阅读(23) 评论(0) 推荐(0) 编辑
摘要: redis-py提供两个类Redis和StrictRedis用于实现Redis的命令,StrictRedis用于实现大部分官方的命令,并使用官方的语法和命令(比如,SET命令对应与StrictRedis.set方法)。Redis是StrictRedis的子类,用于向后兼容旧版本的redis-py。 阅读全文
posted @ 2022-06-13 12:08 有基友拉我裤链 阅读(593) 评论(0) 推荐(0) 编辑