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

ben-manes / caffeine / #5623
100%

Build:
DEFAULT BRANCH: master
Ran 13 Jul 2026 06:09PM UTC
Jobs 1
Files 78
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

13 Jul 2026 04:15PM UTC coverage: 99.988% (-0.01%) from 100.0%
#5623

push

github

ben-manes
Count the inserting access in SampledPolicy frequency

A node's frequency started at zero, counting only re-accesses after
insertion. The Hyperbolic paper (ATC'17, Fig 1 / Eq 1) defines an
item's priority as n_i divided by its time in cache, where n_i is the
request count since it entered -- the inserting access counts, so a
new item enters at high priority ("temporary immunity") and decays
toward its true popularity. Caffeine's zero-based frequency gave a
fresh entry a hyperbolic priority of 0.0, the lowest, so sampled
Hyperbolic evicted new arrivals first -- the exact inversion of the
paper.

Initialize frequency to 1 at insertion so it means "requests since
entering", matching the paper's n_i. This is order-preserving for the
LFU and MFU selections (a uniform +1 shift leaves argmin/argmax
unchanged), so only Hyperbolic's eviction decisions change; FIFO, LRU,
MRU, and RANDOM do not read frequency.

4143 of 4154 branches covered (99.74%)

8412 of 8413 relevant lines covered (99.99%)

1.0 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
99.42
-0.58% jcache/src/main/java/com/github/benmanes/caffeine/jcache/configuration/TypesafeConfigurator.java
Jobs
ID Job ID Ran Files Coverage
1 #5623.1 13 Jul 2026 06:09PM UTC 78
99.99
Source Files on build #5623
  • Tree
  • List 78
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 12fa7fbb on github
  • Prev Build on master
  • Next Build on master
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