Comparison
cacheout vs cachettl vs lru-dict vs pylru
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A caching library for Python
Maintained. Last release 2 months ago, commits in 9 of the last 26 weeks. Weaker on release cadence and security practices.
pip install cacheoutcachettl is an elegant LRU TTL cache decorator that also works with asyncio. It has the cache_info(), cache_clear() methods and access to the remainingttl property.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install cachettlAn Dict like LRU container.
Low maintenance activity. Last release 13 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install lru-dictA least recently used (LRU) cache implementation
Maintained. Last release 5 weeks ago, commits in 2 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install pylruIn short
- cachettl is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- lru-dict is the most used: 5M downloads a month, 4.8× more than cacheout.
- cacheout is better maintained: Pythie’s Index 68 against 28.
- cacheout is growing fastest: downloads +76% over the last month.