aredis:用于Python asyncio的redis客户端(已支持redis服务器,哨兵和集群)

时间:2024-05-03 14:11:37
【文件属性】:

文件名称:aredis:用于Python asyncio的redis客户端(已支持redis服务器,哨兵和集群)

文件大小:192KB

文件格式:ZIP

更新时间:2024-05-03 14:11:37

async redis-cluster redis-client asyncio Python

阿雷迪斯 从 (这是Redis键值的Python接口)移植的高效且用户友好的异步redis客户端 要获取更多信息,请阅读 安装 aredis需要运行中的Redis服务器。 要安装aredis,只需: $ pip3 install aredis[hiredis] 或从来源: $ python setup.py install 入门 提示:从python 3.8开始,您可以使用asyncio REPL: $ python -m asyncio 单节点客户端 import asyncio from aredis import StrictRedis async def example (): client = StrictRedis ( host = '127.0.0.1' , port = 6379 , db = 0 ) await client . flushdb


网友评论