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

bitfaster / BitFaster.Caching / 46212622098
99%

Build:
DEFAULT BRANCH: main
Ran 29 Nov 2026 01:54AM UTC
Jobs 7
Files 117
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

29 Nov 2026 01:45AM UTC coverage: 99.318% (-0.01%) from 99.328%
46212622098

push

github

web-flow
Implement weight-based trimming for WeightedConcurrentLfu (#834)

* Implement weight-based trimming for LFU policies

Retain zero-weight entries during weighted trimming while preserving count-based IBoundedPolicy trimming and Clear behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 154d216f-cb02-4eb0-b7af-f0fb50f4e328

* Specialize trim selection in each LFU eviction policy

Make GetTrimCandidates abstract and remove the trim mode flag. Always trim unweighted policies by count and weighted policies by weight. Clear entries independently so zero-weight entries are removed too.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 154d216f-cb02-4eb0-b7af-f0fb50f4e328

* Preserve cleared removal reasons before maintenance

Remove live entries before replaying buffered writes so pending oversized inserts and updates report Cleared instead of Evicted. Cover zero-weight entries and exactly-once notifications for pending explicit removals.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 154d216f-cb02-4eb0-b7af-f0fb50f4e328

* Expose LFU eviction policies through cache wrappers

Remove IBoundedPolicy, explicit Trim(int), and CachePolicy construction from ConcurrentLfuCore. Route downstream callers through cache eviction policies without boxing the core, and retain current event subscriptions when a policy is cached.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 154d216f-cb02-4eb0-b7af-f0fb50f4e328

* Reuse the trim path when clearing LFU caches

Pass ItemRemovedReason through a shared trim helper and policy-specific candidate selection. Include zero-weight entries when clearing without a separate dictionary loop, and remove the added clear-event reason tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 154d216f-cb02-4eb0-b7af-f0fb50f4e328

* Restore the origin... (continued)

1550 of 1580 branches covered (98.1%)

Branch coverage included in aggregate %.

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

6608 of 6634 relevant lines covered (99.61%)

83075905.28 hits per line

Jobs
ID Job ID Ran Files Coverage
1 win10 - 46212622098.1 29 Nov 2026 02:03AM UTC 117
97.95
GitHub Action Run
2 mac10 - 46212622098.2 29 Nov 2026 02:01AM UTC 117
98.18
GitHub Action Run
3 mac6 - 46212622098.3 29 Nov 2026 02:00AM UTC 116
98.42
GitHub Action Run
4 win6 - 46212622098.4 29 Nov 2026 01:56AM UTC 116
98.1
GitHub Action Run
5 win3 - 46212622098.5 29 Nov 2026 01:57AM UTC 116
97.56
GitHub Action Run
6 linux6 - 46212622098.6 29 Nov 2026 01:54AM UTC 116
97.97
GitHub Action Run
7 linux10 - 46212622098.7 29 Nov 2026 01:59AM UTC 117
97.89
GitHub Action Run
Source Files on build 46212622098
  • Tree
  • List 117
  • Changed 11
  • Source Changed 7
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #46212622098
  • 4a751ac2 on github
  • Prev Build on main (#46199512568)
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