Caffeine

A high performance caching library for Java (by ben-manes)

Caffeine Alternatives

Similar projects and alternatives to Caffeine

  1. linux

    Linux kernel source tree

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. excalidraw

    475 Caffeine VS excalidraw

    Virtual whiteboard for sketching hand-drawn like diagrams

  4. Folly

    108 Caffeine VS Folly

    An open-source C++ library developed and used at Facebook.

  5. Guava

    65 Caffeine VS Guava

    Google core libraries for Java

  6. parse-server

    43 Caffeine VS parse-server

    Parse Server for Node.js / Express

  7. ristretto

    A high performance memory-bound Go cache

  8. groupcache

    groupcache is a caching and cache-filling library, intended as a replacement for memcached in many cases.

  9. minisketch

    Minisketch: an optimized library for BCH-based set reconciliation

  10. cache2k

    Lightweight, high performance Java caching

  11. t-digest

    9 Caffeine VS t-digest

    A new data structure for accurate on-line accumulation of rank-based statistics such as quantiles and trimmed means

  12. Ehcache

    3 Caffeine VS Ehcache

    Ehcache 3.x line

  13. incubator-baremaps

    Create custom vector tiles from OpenStreetMap and other data sources with Postgis and Java.

  14. theine

    9 Caffeine VS theine

    high performance in-memory cache

  15. Apache Geode

    Apache Geode

  16. Hazelcast

    Hazelcast is a unified real-time data platform combining stream processing with a fast data store, allowing customers to act instantly on data-in-motion for real-time insights.

  17. caffeine

    A basic REST service for JSON data - enough for prototyping and MVPs! (by rehacktive)

  18. theine-go

    high performance in-memory cache

  19. scaffeine

    Thin Scala wrapper for Caffeine (https://github.com/ben-manes/caffeine)

  20. golang-fifo

    Modern efficient cache design with simple FIFO queue only in Golang

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better Caffeine alternative or higher similarity.

Caffeine discussion

Log in or Post with

Caffeine reviews and mentions

Posts with mentions or reviews of Caffeine. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-02-07.
  • Microbenchmarks: HashMap, ConcurrentHashMap, and Guava Caches
    1 project | news.ycombinator.com | 5 Mar 2025
    https://github.com/ben-manes/caffeine/wiki/Benchmarks

    5. Data structures are surprisingly tricky. For example see this analysis showing an accidental misunderstanding degrading an LRU to O(n) eviction.

  • How to Use Caffeine with Kotlin Coroutines - Introduction to caffeine-coroutines
    3 projects | dev.to | 7 Feb 2025
    JVM has a widely used library for implementing caching called Caffeine.
  • Analyzing the codebase of Caffeine: a high performance caching library
    10 projects | news.ycombinator.com | 2 Feb 2025
    That's kind of the idea of Caffeine, it has admission buffers, and it adapts automatically between LRU and LFU. The original algorithm is called Windiw TinyLFU (design https://github.com/ben-manes/caffeine/wiki/Design), see it in action e.g. here: https://github.com/ben-manes/caffeine/wiki/Efficiency
  • Hybrid Cache Strategy in Spring Boot: A Guide to Redisson and Caffeine Integration
    2 projects | dev.to | 25 Jan 2025
    Local caches, like Caffeine, provide extremely fast data retrieval because they operate in memory and are close to the application. These are ideal for reducing response times for frequently accessed data. On the other hand, distributed caches, such as those powered by Redisson with Redis, offer scalability and consistency across multiple instances of an application. Distributed caches ensure all nodes in a distributed system access the same up-to-date data, which is crucial in multi-node environments.
  • Show HN: Pocache, preemptive optimistic caching for Go
    6 projects | news.ycombinator.com | 11 Oct 2024
    One optimization for background refresh is coalescing the individual reloads into a batch operation based on a time/space window. Here is how we do it in the Java world. [1]

    [1] https://github.com/ben-manes/caffeine/tree/master/examples/c...

  • Working Set Size Estimation (2018)
    1 project | news.ycombinator.com | 9 Oct 2024
    If anyone is interested in space & time efficient caching and working set tracking check out some of my favorites, gil einziger https://scholar.google.co.il/citations?user=kWivlnsAAAAJ and the ex coho data guys https://www.usenix.net/system/files/conference/osdi14/osdi14....

    Ben Manes[1] worked with Gil Einziger on an implementation of TinyLFU and actually contributed to an updated version of the TinyLFU paper, IIRC. Gil has a ton of very relevant work[2][3] around cache admission, control, and information density.

    Coho data was working very large storage arrays, specifically optimizing data placement across different media/hosts/etc. lots of similar problems where even the metadata of the working set was prohibitively large. So they had space & time efficient functions to track access patterns in realtime. Their business didnt work out (unfortunately) and most of them ended up at AWS, working on storage like S3 and Glacier.

    [1] https://github.com/ben-manes/caffeine/wiki/Efficiency#window...

  • Otter, Fastest Go in-memory cache based on S3-FIFO algorithm
    16 projects | news.ycombinator.com | 23 Dec 2023
    /u/someplaceguy,

    Those LIRS traces, along with many others, available at this page [1]. I did a cursory review using their traces using Caffeine's and the author's simulators to avoid bias or a mistaken implementation. In their target workloads Caffeine was on par or better [2]. I have not seen anything novel in this or their previous works and find their claims to be easily disproven, so I have not implement this policy in Caffeine simulator yet.

    [1]: https://github.com/ben-manes/caffeine/wiki/Simulator

    [2]: https://github.com/1a1a11a/libCacheSim/discussions/20

  • Google/guava: Google core libraries for Java
    3 projects | news.ycombinator.com | 8 Nov 2023
    That, and also when caffeine came out it replaced one of the major uses (caching) of guava.

    https://github.com/ben-manes/caffeine

  • GC, hands off my data!
    6 projects | dev.to | 27 Oct 2023
    I decided to start with an overview of what open-source options are currently available. When it comes to the implementation of the on-heap cache mechanism, the options are numerous – there is well known: guava, ehcache, caffeine and many other solutions. However, when I began researching cache mechanisms offering the possibility of storing data outside GC control, I found out that there are very few solutions left. Out of the popular ones, only Terracotta is supported. It seems that this is a very niche solution and we do not have many options to choose from. In terms of less-known projects, I came across Chronicle-Map, MapDB and OHC. I chose the last one because it was created as part of the Cassandra project, which I had some experience with and was curious about how this component worked:
  • Spring Cache with Caffeine
    2 projects | dev.to | 22 Oct 2023
    Visit the official Caffeine git project and documentation here for more information if you are interested in the subject.
  • A note from our sponsor - SaaSHub
    www.saashub.com | 14 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic Caffeine repo stats
52
17,704
9.1
5 days ago

ben-manes/caffeine is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of Caffeine is Java.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Java is
the 10th most popular programming language
based on number of references?