database.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:WebGames 作者: Julien00859 项目源码 文件源码
def connect_to_cache(host: str, port: int, password: str,
                           poolsize: int, db: int) -> aioredis.pool:
    global cachepool
    cachepool = await aioredis.create_pool((host, port), password=password,
                                           db=db, maxsize=poolsize,
                                           encoding="utf-8")
    return cachepool
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号