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

stores-com / petty-cache
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: feat/throttle
DEFAULT BRANCH: main
Repo Added 12 Feb 2026 10:19PM UTC
Files 1
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

LAST BUILD ON BRANCH feat/throttle
branch: feat/throttle
CHANGE BRANCH
x
Reset
  • feat/throttle
  • feat/debounce
  • main
  • v3.7.0

26 Apr 2026 01:57AM UTC coverage: 99.812% (-0.2%) from 100.0%
24945751484

Pull #63

github

freshlogic
feat: add throttle — distributed throttle primitive

Coalesces calls for the same key across multiple processes via Redis so
that fn runs at most once per ttl window. The first caller in a window
wins the claim and fn runs to completion; subsequent calls are no-ops.
Errors thrown by fn propagate to the caller — useful for callers that
need to know whether the work succeeded so they can NACK upstream
messages, etc.

Implementation is a single SETNX with PX TTL: claim succeeds, fn runs;
claim fails, return immediately.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #63: feat: add throttle — distributed throttle primitive

409 of 410 branches covered (99.76%)

Branch coverage included in aggregate %.

37 of 39 new or added lines in 1 file covered. (94.87%)

1186 of 1188 relevant lines covered (99.83%)

49.52 hits per line

Relevant lines Covered
Build:
Build:
1188 RELEVANT LINES 1186 COVERED LINES
49.52 HITS PER LINE
Source Files on feat/throttle
  • Tree
  • List 1
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
24945751484 feat/throttle feat: add throttle — distributed throttle primitive Coalesces calls for the same key across multiple processes via Redis so that fn runs at most once per ttl window. The first caller in a window wins the claim and fn runs to completion; subsequen... Pull #63 26 Apr 2026 01:57AM UTC freshlogic github
99.81
See All Builds (31)
  • Repo on GitHub
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