Caffeine is an in-memory caching library designed for applications that need fast access to frequently requested data. It provides a cache interface inspired by Google Guava, allowing developers to store and retrieve objects while controlling memory consumption, expiration and automatic data population.
The library uses an adaptive admission and eviction strategy to decide which entries should remain in memory. This is particularly useful when workloads contain a mixture of frequently accessed items and infrequent requests that would otherwise displace valuable cached data. Caffeine can be integrated directly into application code and provides extensions for established caching interfaces, including JCache and Guava.
This is free and open source software.
Key Features
- High-performance, thread-safe in-memory caching.
- Adaptive cache admission and eviction using frequency and recency information.
- Automatic loading of missing cache entries.
- Asynchronous cache loading and computation.
- Size-based eviction when the configured capacity is exceeded.
- Time-based expiration after a specified period since the last access or write.
- Automatic asynchronous refresh of stale entries.
- Weak references for cache keys.
- Weak or soft references for cached values.
- Removal listeners for receiving notifications when entries leave the cache.
- Write-through operations for propagating changes to external resources.
- Cache statistics for monitoring hits, misses and other activity.
- Compatibility adapters for Google Guava caching interfaces.
- JSR-107 JCache integration.
- Cache policy simulation tools for evaluating different workloads.
Website: github.com/ben-manes/caffeine
Support:
Developer: Ben Manes and contributors
License: Apache License 2.0
Caffeine is written in Java. Learn Java with our recommended free books and free tutorials.
Related Software
| Caching Systems | |
|---|---|
| Memcached | High-performance distributed memory object caching system |
| Redis | Persistent key-value database with network interface |
| Hazelcast | Distributed in-memory data store and computation platform |
| Apache Ignite | Distributed database, caching and processing platform |
| Ehcache | Standards based pure Java in-process cache |
| Java Caching System | Distributed caching system written in Java |
| Couchbase | Distributed key-value database management system |
| Apache Geode | Distributed, in-memory data management platform |
| yrmcds | LRU cache library and key-value server |
| Cachelot | Memory object caching system with master/slave replication |
| Infinispan | Distributed, in-memory database and data grid |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.