source/projects/async_cache
2024-02-06 10:01:19 -07:00
..
src/python/async_cache Fmt. 2023-07-06 22:55:26 -06:00
test/python don't need that 2022-11-26 14:20:38 -07:00
BUILD.bazel BUILD.bazel 2024-02-06 10:01:19 -07:00
LICENSE Import the async caches 2022-11-21 00:04:31 -07:00
README.md Import the async caches 2022-11-21 00:04:31 -07:00

Async cache

An LRU and TTL cache for async functions in Python.

  • alru_cache provides an LRU cache decorator with configurable size.
  • attl_cache provides a TTL+LRU cache decorator with configurable size.

Neither cache proactively expires keys. Maintenance occurs only when requesting keys out of the cache.

License

Derived from https://github.com/iamsinghrajat/async-cache, published under the MIT license.