Caffeine
A high performance, near optimal caching library for Java 8+ using Window TinyLFU.
Why consider Caffeine?
Caffeine is an open-source, high-performance in-memory caching library for Java written by Ben Manes. Powered by the Window TinyLFU eviction algorithm, Caffeine delivers near-optimal hit ratios and nanosecond read/write concurrency for high-throughput enterprise systems.
Learn Caffeine by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide2 sections
Overview of Caffeine
Caffeine provides concurrent in-memory caching with automatic frequency-based eviction.
Quickstart
<dependency> <groupId>com.github.ben-manes.caffeine</groupId> <artifactId>caffeine</artifactId> <version>3.1.8</version></dependency>Caffeine is licensed under the Apache License Version 2.0.
Related tools
More options with a similar category or technology profile.
diskus
Minimal, fast alternative to du -sh written in Rust using multi-threaded directory traversal.
peco
Simplistic interactive filtering tool for Unix pipelines, process lists, and file trees.
Dapr CLI
Command-line tool for managing Dapr distributed application runtime environments and sidecars.
Freeze
Generate beautiful image screenshots and SVGs of code snippets and terminal outputs.