文章列表Python第三方库异步编程aioredisOn this pageaioredis基础使用安装pip install aioredis使用示例基础配置OPTIONS = { "url": 'redis://127.0.0.1/3', "host": '127.0.0.1', "db": 3, "max_connections": 20, # 连接池最大数量 "encoding": "utf-8", # utf8 编码 "decode_responses": True, # 自动转换json }连接池使用pool = aioredis.ConnectionPool.from_url(**OPTIONS)