A python library for asyncio caches (like functools cache and lru_cache)
Project description
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for asyncio_cache-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1b0d9d90fa63f572846d68bb4ad9f99705fe89c8105ca26f2eafd10ff1dcccb |
|
MD5 | ede375a7ae4dbf7684b698aee1ad9358 |
|
BLAKE2b-256 | 7c68bb49f8c2498112f11216cc05be7c47fb0e98775b7e844c2bb38e6b21c3d7 |