• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agronholm / anyio / 22311165617
93%

Build:
DEFAULT BRANCH: master
Ran 23 Feb 2026 02:51PM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
22311165617

push

github

web-flow
Add `ttl` parameter to functools.lru_cache (#1073)

Many kinds of cache implementations have a TTL parameter, which allows for expiring entries after a certain period of time. This is useful for preventing unnecessary repitition of work.

This commit adds a `ttl` parameter to the `functools.lru_cache` wrapper implemented in a very simple way with minimal overhead compared to the existing code. Expiration time is simply added as an additional value to the LRU cache tuple. Expiration happens lazily (that is, at the time of the check)--if the key's expiry has passed at the time we try and fetch an entry, we invalidate it instead and trigger a cache miss.
Source Files on build 22311165617
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #22311165617
  • 013de24c on github
  • Prev Build on master (#22257109284)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc