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
Metadata
Release files for async-cached 3.11.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| async-cached-3.11.2.tar.gz | 1.5 kB | Without provenance | Details |
Release files / async-cached-3.11.2.tar.gz
| Download URL | async-cached-3.11.2.tar.gz |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
954adb57c19cf56621f3409c5e061a63f5033f496fd4108523d65be95431a50a
|
|
BLAKE2b-256 checksum How to use checksums |
24faca0ca4b0a7761a2e4272001f28d7b3d47cc79680a186e9fb9f2241112319
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Security for async-cached 3.11.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.