---
title: "caffeine 3.0.0 Breaking Changes on Maven Central"
description: "What each com.github.ben-manes.caffeine:caffeine release removed, renamed or changed: 39 breaking changes in 1 version on Maven Central, each with its source."
canonical_url: https://since.dev/packages/maven/com.github.ben-manes.caffeine:caffeine
last_updated: 2026-12-04
---

# com.github.ben-manes.caffeine:caffeine breaking changes

com.github.ben-manes.caffeine:caffeine 3.0.0 (February 21, 2021) is its newest release with breaking changes, 39 of them. The first: Removes the jandex resource in com.github.ben-manes.caffeine:caffeine 3.0.0. Every breaking API change we have recorded in com.github.ben-manes.caffeine:caffeine on Maven Central: 39 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.3.1`, released October 13, 2026. [Source repository](https://github.com/ben-manes/caffeine)

Its 3.0.0 release requires [Java 11](https://since.dev/calendar/eclipse-temurin/11.md) or later. [Java end of life dates](https://since.dev/calendar/eclipse-temurin.md).

## com.github.ben-manes.caffeine:caffeine 3.0.0 breaking changes

com.github.ben-manes.caffeine:caffeine 3.0.0, released February 21, 2021: 39 breaking changes.

- **Removed**  

The jandex resource is no longer shipped because Quarkus no longer uses it. [github.com](https://github.com/ben-manes/caffeine/releases/tag/v3.0.0)
- **Removed**  

The package now requires Java 11 or later. Java 8 users must stay on the 2.x line. [github.com](https://github.com/ben-manes/caffeine/releases/tag/v3.0.0)
- **Removed** `CacheStats`  

The deprecated CacheStats constructors are removed. [github.com](https://github.com/ben-manes/caffeine/releases/tag/v3.0.0)
- **Removed** `com.github.benmanes.caffeine.base.UnsafeAccess`  

UnsafeAccess is removed in this release. [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Removed** `com.github.benmanes.caffeine.cache.CacheWriter`  

CacheWriter is removed; use Map computations and Caffeine.evictionListener instead. [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Removed** `com.github.benmanes.caffeine.cache.Caffeine.writer`  

Caffeine.writer was removed in com.github.ben-manes.caffeine:caffeine 3.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Removed** `com.github.benmanes.caffeine.cache.Policy.Expiration`  

Policy.Expiration is split into separate fixed and refresh expiration interfaces, so code using the combined type must change. [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Removed** `com.github.benmanes.caffeine.cache.stats.CacheStats.<init>`  

CacheStats.\<init> was removed in com.github.ben-manes.caffeine:caffeine 3.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Removed** `com.github.benmanes.caffeine.SingleConsumerQueue`  

SingleConsumerQueue is removed in this release. [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Behavior changed**  

Logging goes through the Java Platform Logging API instead of java.util.logging, which can change how log output is configured and routed. [github.com](https://github.com/ben-manes/caffeine/releases/tag/v3.0.0)
- **Signature changed**  

Some methods that had unimplemented default implementations are now abstract, so custom implementations must provide them. [github.com](https://github.com/ben-manes/caffeine/releases/tag/v3.0.0)
- **Signature changed**  

Bulk load methods now receive a Set of keys rather than an Iterable, so loader implementations must accept a Set. [github.com](https://github.com/ben-manes/caffeine/releases/tag/v3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.AsyncCache.get`  

Was java.util.concurrent.CompletableFuture\<V> get(K, java.util.function.BiFunction\<? super K, java.util.concurrent.Executor, java.util.concurrent.CompletableFuture\<V>>); now java.util.concurrent.CompletableFuture\<V> get(K... [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.AsyncCache.put`  

Was void put(K, java.util.concurrent.CompletableFuture\<V>); now void put(K, java.util.concurrent.CompletableFuture\<? extends V>). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.AsyncCacheLoader.asyncLoad`  

Was java.util.concurrent.CompletableFuture\<V> asyncLoad(K, java.util.concurrent.Executor); now java.util.concurrent.CompletableFuture\<? extends V> asyncLoad(K, java.util.concurrent.Executor). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.AsyncCacheLoader.asyncLoadAll`  

Was java.util.concurrent.CompletableFuture\<java.util.Map\<K, V>> asyncLoadAll(Iterable\<? extends K>, java.util.concurrent.Executor); now java.util.concurrent.CompletableFuture\<? extends java.util.Map\<? extends K, ? extends V>>... [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.AsyncCacheLoader.asyncReload`  

Was java.util.concurrent.CompletableFuture\<V> asyncReload(K, V, java.util.concurrent.Executor); now java.util.concurrent.CompletableFuture\<? extends V> asyncReload(K, V, java.util.concurrent.Executor). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.AsyncLoadingCache.get`  

Was java.util.concurrent.CompletableFuture\<V> get(K, java.util.function.BiFunction\<? super K, java.util.concurrent.Executor, java.util.concurrent.CompletableFuture\<V>>); now java.util.concurrent.CompletableFuture\<V> get(K... [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.AsyncLoadingCache.put`  

Was void put(K, java.util.concurrent.CompletableFuture\<V>); now void put(K, java.util.concurrent.CompletableFuture\<? extends V>). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.Cache.getAll`  

Was java.util.Map\<K, V> getAll(Iterable\<? extends K>, java.util.function.Function\<Iterable\<? extends K>, java.util.Map\<K, V>>); now java.util.Map\<K, V> getAll(Iterable\<? extends K>, java.util.function.Function\<? super java.util.Set\<?... [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.Cache.getAllPresent`  

Was java.util.Map\<K, V> getAllPresent(Iterable\<?>); now java.util.Map\<K, V> getAllPresent(Iterable\<? extends K>). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.Cache.getIfPresent`  

Was V getIfPresent(Object); now V getIfPresent(K). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.Cache.invalidate`  

Was void invalidate(Object); now void invalidate(K). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.Cache.invalidateAll`  

Was void invalidateAll(Iterable\<?>); now void invalidateAll(Iterable\<? extends K>). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.CacheLoader.loadAll`  

Was java.util.Map\<K, V> loadAll(Iterable\<? extends K>); now java.util.Map\<? extends K, ? extends V> loadAll(java.util.Set\<? extends K>). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.LoadingCache.getAll`  

Was java.util.Map\<K, V> getAll(Iterable\<? extends K>, java.util.function.Function\<Iterable\<? extends K>, java.util.Map\<K, V>>); now java.util.Map\<K, V> getAll(Iterable\<? extends K>, java.util.function.Function\<? super java.util.Set\<?... [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.LoadingCache.getAllPresent`  

Was java.util.Map\<K, V> getAllPresent(Iterable\<?>); now java.util.Map\<K, V> getAllPresent(Iterable\<? extends K>). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.LoadingCache.getIfPresent`  

Was V getIfPresent(Object); now V getIfPresent(K). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.LoadingCache.invalidate`  

Was void invalidate(Object); now void invalidate(K). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.LoadingCache.invalidateAll`  

Was void invalidateAll(Iterable\<?>); now void invalidateAll(Iterable\<? extends K>). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.LoadingCache.refresh`  

The refresh method now returns the in-flight future instead of returning nothing, so callers that depend on the old return type must adapt. [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.Policy.expireAfterAccess`  

Was java.util.Optional\<com.github.benmanes.caffeine.cache.Policy.Expiration\<K, V>> expireAfterAccess(); now java.util.Optional\<com.github.benmanes.caffeine.cache.Policy.FixedExpiration\<K, V>> expireAfterAccess(). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.Policy.expireAfterWrite`  

Was java.util.Optional\<com.github.benmanes.caffeine.cache.Policy.Expiration\<K, V>> expireAfterWrite(); now java.util.Optional\<com.github.benmanes.caffeine.cache.Policy.FixedExpiration\<K, V>> expireAfterWrite(). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.Policy.getIfPresentQuietly`  

Was V getIfPresentQuietly(Object); now V getIfPresentQuietly(K). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.Policy.refreshAfterWrite`  

Was java.util.Optional\<com.github.benmanes.caffeine.cache.Policy.Expiration\<K, V>> refreshAfterWrite(); now java.util.Optional\<com.github.benmanes.caffeine.cache.Policy.FixedRefresh\<K, V>> refreshAfterWrite(). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.Policy.VarExpiration.put`  

Was void put(K, V, java.time.Duration) void put(K, V, long, java.util.concurrent.TimeUnit); now V put(K, V, java.time.Duration) V put(K, V, long, java.util.concurrent.TimeUnit). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.Policy.VarExpiration.putIfAbsent`  

Was boolean putIfAbsent(K, V, java.time.Duration) boolean putIfAbsent(K, V, long, java.util.concurrent.TimeUnit); now V putIfAbsent(K, V, java.time.Duration) V putIfAbsent(K, V, long, java.util.concurrent.TimeUnit). [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `com.github.benmanes.caffeine.cache.stats.StatsCounter.recordEviction`  

The deprecated variations of StatsCounter.recordEviction are removed. [central.sonatype.com](https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine/3.0.0)
- **Signature changed** `VarExpiration`  

Time-based put operations now return the old value instead of a boolean result, so code relying on the boolean must change. [github.com](https://github.com/ben-manes/caffeine/releases/tag/v3.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
