ben-manes/caffeine

A high performance caching library for Java

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 36 minutes ago
Added to GitGenius on September 3rd, 2026
Created on December 13th, 2014
Open Issues & Pull Requests: 1 (+0)
GitHub issues: Enabled
Number of forks: 1,711
Total Stargazers: 17,848 (+0)
Total Subscribers: 360 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 0.8 hours
Mean response time: 3.4 days
90th percentile: 8.6 hours
Tracked items: 102

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 9% of issues opened in the past year have been closed. Three people close 86% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 0
New in 7 days: 2
Closed in 7 days: 2
Avg open age: N/A days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 2
Closed in 7 days: 2
Comments in 7 days: 0
Events in 7 days: 1

Top labels

  • enhancement (1)

Detailed Description

Caffeine is a high performance in-memory caching library for Java that provides a Google Guava inspired API with modern improvements.

The library addresses the need for efficient cache management in Java applications by implementing a sophisticated eviction policy based on frequency and recency of access. It combines automatic entry loading, size-based and time-based expiration, asynchronous refresh capabilities, and weak or soft reference wrapping for keys and values. The tool also supports cache statistics collection, external resource synchronization through write-through operations, and entry eviction notifications.

Caffeine suits projects requiring predictable cache performance and memory efficiency. It works well for applications already using Spring Cache, Play Framework, Micronaut, or other frameworks with Caffeine integrations. The library is particularly valuable when you need fine-grained control over eviction behavior and want to avoid the overhead of distributed caching systems. Developers familiar with Guava's cache API will find Caffeine's interface natural, though the library represents a cleaner design informed by experience with Guava's implementation and the earlier ConcurrentLinkedHashMap project. The tool also provides JSR-107 JCache compliance and community wrappers for Scala and Kotlin.

Maintainers respond to issues and pull requests within hours, indicating active engagement with the user base. Development activity is primarily focused on enhancements, suggesting the project prioritizes feature expansion and optimization over bug fixes.