disk.py 文件源码

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

项目:chrome-prerender 作者: bosondata 项目源码 文件源码
def get(self, key: str, format: str = 'html') -> Optional[bytes]:
        loop = asyncio.get_event_loop()
        cache_get = self._cache.get
        data = await loop.run_in_executor(None, cache_get, key + format)
        if data is not None:
            res = await loop.run_in_executor(None, lzma.decompress, data)
            return res
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号