Registry / utility / caffeine

caffeine

JSON →
library3.2.3javamavenunverified

Caffeine is a high-performance, near-optimal caching library for Java, providing in-memory cache with configurable eviction policies.

<dependency> <groupId>com.github.ben-manes.caffeine</groupId> <artifactId>caffeine</artifactId> <version>3.2.3</version> </dependency>
INSTALL
IMPORT
SIG · CAFFEINE
C
caffeine
utilityjavav3.2.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Caffeine
com.github.benmanes.caffeine.cache.Caffeine

Creates a Caffeine cache with maximum size and performs a put/get.

import com.github.benmanes.caffeine.cache.Caffeine; import com.github.benmanes.caffeine.cache.Cache; public class Example { public static void main(String[] args) { Cache<String, String> cache = Caffeine.newBuilder() .maximumSize(100) .build(); cache.put("key", "value"); System.out.println(cache.getIfPresent("key")); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.2.3latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
caffeine — mvn dependency:get caffeine · libregistry