cachettl is an elegant LRU TTL cache decorator for Python, supporting both synchronous and asyncio functions. Version 1.0.4 (latest) requires Python >=3.7. Provides cache_info(), cache_clear(), and a remainingttl property. Development appears stable with infrequent releases.
pip install cachettlVerified import paths — ran on the pinned version, not inferred.
Basic usage of cachettl decorator with maxsize and ttl.
Use 'from cachettl import cachettl' and decorate with @cachettl(...).
Use @cachettl(maxsize=128, ttl=60) only. Do not pass other unexpected kwargs.
Run 'pip install cachettl' to install the package.
Replace 'timeout' with 'ttl' in the decorator call.
No dependency data recorded yet.