--- id: async-lru version: "2.3.0" license: MIT License license_treatment: permissive maintenance: active --- # async-lru — Simple LRU cache for asyncio License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install async-lru uv add async-lru poetry add async-lru ## Description async-lru ========= :info: Simple lru cache for asyncio .. image:: https://github.com/aio-libs/async-lru/actions/workflows/ci-cd.yml/badge.svg?event=push :target: https://github.com/aio-libs/async-lru/actions/workflows/ci-cd.yml?query=event:push :alt: GitHub Actions CI/CD workflows status .. image:: https://img.shields.io/pypi/v/async-lru.svg?logo=Python&logoColor=white :target: https://pypi.org/project/async-lru :alt: async-lru @ PyPI .. image:: https://codecov.io/gh/aio-libs/async-lru/branch/master/graph/badge.svg :target: https://codecov.io/gh/aio-libs/async-lru .. image:: https://img.shields.io/matrix/aio-libs:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat :target: https://matrix.to/#/%23aio-libs:matrix.org :alt: Matrix Room — #aio-libs:matrix.org .. image:: https://img.shields.io/matrix/aio-libs-space:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs-space%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat :target: https://matrix.to/#/%23aio-libs-space:matrix.org :alt: Matrix Space — #aio-libs-space:matrix.org Installation ------------ .. code-block::... ## AI interpretation — verify before relying Provides an LRU cache decorator for async functions that deduplicates concurrent calls and supports TTL expiration with jitter, mirroring Python's functools.lru_cache for asyncio. Verdict: Production-ready async caching library with low install friction, active maintenance, and no known vulnerabilities. The single-event-loop constraint is documented and manageable for typical asyncio applications. Recommended for projects needing efficient memoization of async functions with optional TTL support. [View on SkillFed](https://skillfed.io/packages/async-lru) · [View on PyPI](https://pypi.org/project/async-lru/)