async-cached-3.11.2


توضیحات

Decorator to cache async function results
ویژگی مقدار
سیستم عامل OS Independent
نام فایل async-cached-3.11.2
نام async-cached
نسخه کتابخانه 3.11.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده aiocoro
ایمیل نویسنده aiocoro@protonmail.ch
آدرس صفحه اصلی https://github.com/aiocoro/async-cached
آدرس اینترنتی https://pypi.org/project/async-cached/
مجوز -
# Caching decorator for async functions This is a replacement for `@cached()` decorator from `cachetools`. `cachetools` does not support async at the time of writing. # Installation ``` pip install async-cached ``` # Example ``` from cachetools import LRUCache from asynccached import asynccached _cache = LRUCache(maxsize=1) @asynccached(cache=_cache, key=lambda arg: arg) async def func(arg): pass ```


نحوه نصب


نصب پکیج whl async-cached-3.11.2:

    pip install async-cached-3.11.2.whl


نصب پکیج tar.gz async-cached-3.11.2:

    pip install async-cached-3.11.2.tar.gz