ristretto
gf
ristretto | gf | |
---|---|---|
1 | 1 | |
89 | 10,918 | |
- | 1.8% | |
2.0 | 9.5 | |
3 months ago | 3 days ago | |
Go | Go | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ristretto
-
A flexible multi-layer Go caching library to deal with in-memory and shared cache by adopting Cache-Aside pattern.
I think the non-guarantee is in respect to tinylfu acting as a filter, so a new arrival may be immediately discarded. However, if all writes go through this buffer then an update and create are delayed within the hash table. The rational was performance in a microbenchmark to flip the behavior for publishing an article. I recall them admitting it was a mistake due to the surprises it caused and that they hoped to later change it back. You can ask on their new github and maybe send a pr.
What are some alternatives?
go-cache - A flexible multi-layer Go caching library to deal with in-memory and shared cache by adopting Cache-Aside pattern.
Gin - Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
GCache - An in-memory cache library for golang. It supports multiple eviction policies: LRU, LFU, ARC
hertz - Go HTTP framework with high-performance and strong-extensibility for building micro-services.
gocache - ☔️ A complete Go cache library that brings you multiple ways of managing your caches
Fiber - ⚡️ Express inspired web framework written in Go
fastcache - Fast thread-safe inmemory cache for big number of entries in Go. Minimizes GC overhead
utron - A lightweight MVC framework for Go(Golang)
ristretto - A high performance memory-bound Go cache
logz - The logz is Go library for grouping a access log and application logs
confetti - Confetti is a web application framework with an expressive, elegant syntax. This repository contains configuration files and is intended as a template for your codebase. Download these configuration files and include them in your git repository.
Echo - High performance, minimalist Go web framework