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

kibertoad / toad-cache / 28660607611
100%

Build:
DEFAULT BRANCH: main
Ran 03 Jul 2026 12:29PM UTC
Jobs 1
Files 7
Run time 1min
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

03 Jul 2026 12:29PM UTC coverage: 100.0%. Remained the same
28660607611

push

github

web-flow
Optimize cache implementations and improve hit statistics (#101)

* perf: eliminate redundant work on cache hot paths

- Replace has-then-get double hash lookups with a single lookup and
  undefined check in get/set/delete/expiresAt across all cache classes
  (safe: backing stores are prototype-less objects / Maps and stored
  item wrappers are never undefined)
- Preallocate the result array in getMany
- Reuse the existing Map in clear() instead of allocating a new one
- Precompute the archive deadline in HitStatistics so archiveIfNeeded,
  which runs on every tracked operation, is a single Date.now()
  comparison instead of Date arithmetic with three divisions
- Hoist the chained record lookup in the currentRecord getter
- Nest the empty-hit check inside the falsy-hit branch (empty values
  are a strict subset of falsy values)
- Drop the this.last guard before bumpLru, which already early-returns
  on the same condition

No public API or behavior changes; all 94 tests pass unchanged with
100% coverage. Local 200k set+get micro-benchmark: LruObjectHitStatistics
~2x faster, FifoMap ~25%, LruMap ~14%, Object variants ~10-15%.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013aDZMcXSvZghQbYwGKTaYH

* @
ci: drop Node 20 from matrix and bump pnpm to 11.9.0

pnpm 11.1.x+ requires Node >=22.13 (its store now requires the
node:sqlite builtin, absent in Node 20), so the 20.x leg crashed
during install with ERR_UNKNOWN_BUILTIN_MODULE. Run CI on 22/24/26,
update the coverage workflow off Node 20, bump the pnpm pin to the
latest 11.9.0, and align devEngines with the new toolchain floor.
@

* ci: run coverage workflow on Node 24

---------

Co-authored-by: Claude <noreply@anthropic.com>

216 of 216 branches covered (100.0%)

Branch coverage included in aggregate %.

65 of 65 new or added lines in 6 files covered. (100.0%)

350 of 350 relevant lines covered (100.0%)

22.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28660607611.1 03 Jul 2026 12:29PM UTC 7
100.0
GitHub Action Run
Source Files on build 28660607611
  • Tree
  • List 7
  • Changed 6
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28660607611
  • 38056a77 on github
  • Prev Build on main (#25995590926)
  • Next Build on main (#28661564489)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc