Skip to main content

A python library for asyncio caches (like functools cache and lru_cache)

Project description

Python application Pypi version Language grade: Python

asyncio-cache

A python library for asyncio caches (like functools cache and lru_cache)

Installation

Install the last released version using pip:

python3 -m pip install --user -U asyncio-cache

Or install the latest version from sources:

git clone git@github.com:matan1008/asyncio-cache.git
cd asyncio-cache
python3 -m pip install --user -U -e .

Usage

The usage is similar to functools.cache and functools.lru_cache usage:

from asyncio_cache import cache


@cache
async def cached_read(reader):
    return await reader.read(100)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asyncio_cache-0.0.1.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

asyncio_cache-0.0.1-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page