asyncache
asyncache copied to clipboard
Helpers to use cachetools with async functions
How is one supposed to safely evict entries? I'm going off of the `cachetools` documentation [here](https://cachetools.readthedocs.io/en/latest/) and thought that to clear the cache I would need to do something like...
The library does not seem like access to the cache awaits pending future like this library does: https://github.com/aio-libs/async-lru/blob/ae252508f9c5aecf9c02ddeb879d06c28dbffc42/async_lru.py#L150 This means that when I try to call my function multiple times,...
Bumps [black](https://github.com/psf/black) from 22.10.0 to 24.3.0. Release notes Sourced from black's releases. 24.3.0 Highlights This release is a milestone: it fixes Black's first CVE security vulnerability. If you run Black...
It looks like you've added a `py.typed` file here on GitHub, but not released a new version incorporating the changes. Could you release a new version and upload to PyPi?
Hi, reading your code I saw that you have the `lock` defined as `AbstractContextManager ` ```python def cached( cache: Optional[MutableMapping[_KT, Any]], # ignoring the mypy error to be consistent with...
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.2 to 3.1.3. Release notes Sourced from jinja2's releases. 3.1.3 This is a fix release for the 3.1.x feature branch. Fix for GHSA-h5c8-rqwp-cp95. You are affected if...
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.12 to 1.26.18. Release notes Sourced from urllib3's releases. 1.26.18 Made body stripped from HTTP requests changing the request method to GET after HTTP 303 "See Other"...
Bumps [certifi](https://github.com/certifi/python-certifi) from 2022.12.7 to 2023.7.22. Commits 8fb96ed 2023.07.22 afe7722 Bump actions/setup-python from 4.6.1 to 4.7.0 (#230) 2038739 Bump dessant/lock-threads from 3.0.0 to 4.0.1 (#229) 44df761 Hash pin Actions and...
Bumps [pygments](https://github.com/pygments/pygments) from 2.13.0 to 2.15.0. Release notes Sourced from pygments's releases. 2.15.0 Added lexers: Carbon (#2362, #2365, #2366, #2367, #2368, #2369, #2370) Dax (#2335, #2345) MediaWiki Wikitext (#2373, #827)...
It's a possible solution for https://github.com/hephex/asyncache/issues/2 When invoking the same cached func multiple times, if the future returned by the first call is still pending then wait for it instead...