推荐学习书目
› 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 · Jan 28, 2023 · 2583 views
    This topic created in 1336 days ago, the information mentioned may be changed or developed.

    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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2303 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 16:10 · PVG 00:10 · LAX 09:10 · JFK 12:10
    ♥ Do have faith in what you're doing.