V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
matrix1010
V2EX  ›  Python

小推广一下我写的 asyncio 缓存框架, 相比常见的 aiocache 有很多新特性

  •  
  •   matrix1010 ·
    Yiling-J · 2023-01-28 18:11:18 +08:00 · 1572 次点击
    这是一个创建于 443 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://github.com/Yiling-J/cacheme

    年前到现在一直在完善这个项目,现在基本上完成了,有兴趣的可以试用一下。支持 Python3.7+。 设计的时候参考了 Go 的一些缓存库,比如 ristretto, gocache, 以及我自己的 cacheme-go 等。

    主要特性:

    • 完全 async
    • Rust 编写的基于 TinyLfu policy 的高效内存缓存(参考了 ristretto 和 java 的 caffeine)。
    • 使用预先定义的 node 进行缓存管理
    • 支持多级缓存
    • Thundering herd 保护(通过 asyncio event 同步数据)
    • 缓存统计 API

    详细说明可以看 github 上的 README

    同时有个单独的 repo 进行 continue benchmark ,有兴趣的也可以看看cacheme-benchmark

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5539 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 08:47 · PVG 16:47 · LAX 01:47 · JFK 04:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.