A high performance memory-bound Go cache (by dgraph-io)

Ristretto Alternatives

Similar projects and alternatives to ristretto

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

ristretto reviews and mentions

Posts with mentions or reviews of ristretto. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-11.
  • Theine - High performance in-memory cache
    2 projects | reddit.com/r/golang | 11 Apr 2023
    I also do some hit ratio benchmarks and Theine's results are much better than Ristretto. See results in README: https://github.com/Yiling-J/theine-go#hit-ratios
  • Python deserves a good in-memory cache library!
    7 projects | reddit.com/r/Python | 8 Feb 2023
    If you know Caffeine(Java)/Ristretto(Go)/Moka(Rust), you know what Theine is. Python deserves a good in-memory cache library.
  • VCache: A Simple In-Memory Cache Library
    2 projects | reddit.com/r/golang | 1 Feb 2023
    Thanks for sharing. There are a lot of options for embedded in-memory caches: https://github.com/dgraph-io/ristretto https://awesome-go.com/caches/ Do you have any comparisons or details on how your project has a different approach?
  • Cacheme: Asyncio cache framework with multiple storages and thundering herd protection
    4 projects | reddit.com/r/Python | 27 Jan 2023
    I made Cacheme years ago, which support redis and synchronous API only. Then I switch to Go and found that there are some awesome cache projects in Go(ristretto, gocache...), I also made my own Cacheme go version: cacheme-go. After trying asyncio and type hint, I think it's time to rewrite my old Cacheme.
  • Show HN: Zcached, in-memory key-value cache wire-compatible with memcached
    2 projects | news.ycombinator.com | 28 Dec 2022
    zcached is an in-memory key-value cache exposing a memcached ASCII protocol-compatible interface, built on pluggable cache engines like Ristretto and freecache [0].

    It's not performance-competitive with memcached, especially at higher thread counts. That said, it achieves about 1.1M ops/s, but at significantly higher P99 and P999 latency (as measured by memtier). See [1] and [2] for benchmark results from my 7950x-based workstation.

    Disclaimer: This is a hobby project created for fun while hacking over the holidays. zcached is not a commercial product and never will be. Don't use it in production; consider this a technology demo more than anything.

    I don't expect the source code to build outside of my environment, but for those interested in playing with it, binary artifacts are available at [3]. Try `zcached --address tcp:localhost:11211`.

    [0] https://github.com/dgraph-io/ristretto, https://github.com/coocood/freecache

  • What is the coolest Go open source projects you have seen?
    84 projects | reddit.com/r/golang | 15 Sep 2022
  • Quitting Dgraph Labs
    2 projects | reddit.com/r/golang | 29 Jan 2022
    While I never used dgraph, I do use badger and ristretto and am similarly in a bind over their long-term survival (moreso badger than ristretto)...
  • Recommendation for Key/Value storage
    9 projects | reddit.com/r/golang | 29 Dec 2021
    There are also different packages used as a wrapper on top of the Go map based on what your requirements are (storing a lot of data) https://github.com/allegro/bigcache or (need performance) https://github.com/dgraph-io/ristretto. For basic use-cases, the standard Go map should be enough. Just keep in mind whether you need concurrent access to your data structure, in which case you should guard your map with a mutex .
  • Writing a concurrent LRU cache
    11 projects | reddit.com/r/rust | 10 Dec 2021
    Ya, I saw concache but I looked into it and it doesn't implement what is needed. Each bucket has its own linked-list backing (hence "lock-free linked list buckets"). An LRU needs each value in each bucket to be part of one linked list I believe. After posting this I realized my line of research was failing because it was state of the art five years ago. Caffeine replaced `concurrentlinkedhashmap` in the java world (by the same author). A rust version of that is Moka. These are much more complicated than a concurrent LRU but faster (aka more state of the art). Another rust crate is Stretto which is a port of dgraph's Ristretto (in go). The question becomes is it worth it to essentially port `concurrentlinkedhashmap` to have a great concurrent LRU when there are more state of the art caches out there.
  • Stretto - a thread-safe, high-performance, high hit-ratio cache.
    5 projects | reddit.com/r/rust | 17 Oct 2021
    Stretto is a pure Rust implementation for https://github.com/dgraph-io/ristretto. A high performance thread-safe memory-bound Rust cache.
  • A note from our sponsor - SonarQube
    www.sonarqube.org | 2 Jun 2023
    Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free. Learn more →


Basic ristretto repo stats
17 days ago
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.