Skip to content
CAI
Produce a survey ↗Verify a survey

ben-manes/caffeine

Caffeine is a high-performance, concurrent caching library for Java that provides in-memory cache implementations with support for expiration, size/weight limits, and asynchronous operations. The system includes a comprehensive simulator for evaluating cache replacement policies and a JCache (JSR-107) adapter for standard compliance. It also offers a compatibility layer for the Guava Cache API and tools for performance benchmarking and static analysis.

66.3

Adequate · 6 August 2026

69k

lines of production code

Java

primary language

1

bus factor · 78 authors in all

3

measurements over time

CAI band scale
CAI trend line

How it got here

2014–2015 · JCache and async cache expansion

This period focused on expanding the library's API surface with asynchronous cache operations and a complete JCache (JSR-107) implementation, including management beans and event handling. Concurrently, the cache simulator was significantly enhanced with new replacement policies, admission frameworks, and trace parsing capabilities to support advanced cache algorithm research.

54 changes

2016–2023 · simulator and trace expansion

This period focused on significantly expanding the cache simulator's capabilities by adding numerous trace file parsers, new cache policies, and adaptive tuning algorithms. The project also standardized build configurations and added several usage examples, including support for Java modules and GraalVM native images.

50 changes

2024–2026 · Comprehensive testing and build modernization

This period focused on modernizing the build system with automated JVM provisioning and enhanced IDE integration, while significantly expanding test coverage. The team added extensive concurrency, JMH, and OSGi tests, alongside new features like an indexable cache example and SNIA trace support.

37 changes

CAI lens gauges

Survey your own repository

ben-manes/caffeine was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.

Survey a repository

About this page

  • The description of this project is derived from its own commit history, not from its README.
  • The score is its highest published measurement, taken on 6 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 33127bbab8 — the exact code this score is about.
  • Scored under rubric rubric-2026.08.19. Score the same commit under that rubric and you get the same number.
CAI link cards