r/java • u/Adventurous-Pin6443 • Jun 19 '25
We built a Java cache that beats Caffeine/EHCache on memory use — and open-sourced it
https://medium.com/carrotdata/carrot-cache-high-performance-ssd-friendly-caching-library-for-java-30bf2502ff76Old news. We have open-sourced Carrot Cache, a Java-native in-memory cache designed for extreme memory efficiency. In our benchmarks, it uses 2–6× less RAM than EHCache or Caffeine.
It’s fully off-heap, supports SSDs, requires no GC tuning and supports entry eviction, expiration. We’re sharing it under the Apache 2.0 license.
Would love feedback from the Java community — especially if you’ve ever hit memory walls with existing caches.
219
Upvotes