lru
LRU cache using go generics (by dboslee)
exp
Experiments that do not fit into a separate repository. (by egonelbre)
lru | exp | |
---|---|---|
5 | 4 | |
118 | 46 | |
- | - | |
0.0 | 7.8 | |
almost 2 years ago | 11 days ago | |
Go | Go | |
MIT License | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
lru
Posts with mentions or reviews of lru.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-09.
- A LRU cache using generics
- LRU cache using go generics
- Show HN: A LRU cache using go generics
-
Implementing a LRU cache to learn generics
Finally had some time to take a closer look at generics and implemented a simple lru cache package. https://github.com/dboslee/lru. Feel free to take a look and leave feedback.
exp
Posts with mentions or reviews of exp.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-29.
-
Integration Tests with Postgres
The benchmarking code is over here https://github.com/egonelbre/exp/tree/main/schema.
-
xml Unmarshal SOAP message
I also wrote a article on an alternative way of doing serialization in scenarios where your "xml" and "ideal code structure" don't match that well. https://egonelbre.com/composed-serialization/, proof-of-concept https://github.com/egonelbre/exp/tree/main/spec.
- Implement a timing wheel for millions of concurrent tasks.
-
Implementing a LRU cache to learn generics
e.g. one possible implementation https://github.com/egonelbre/exp/blob/master/cache/half.go#L3, it doesn't have the power of two choices though. Or https://github.com/egonelbre/exp/blob/master/cache/random.go
What are some alternatives?
When comparing lru and exp you can also consider the following projects:
go-cache-benchmark - Cache benchmark for Golang
go-generics-cache - A key:value store/cache library written in Go generics. LRU, LFU, FIFO, MRU, Clock support.
lo - 💥 A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)
lru - Thread safe GoLang LRU cache
cache - LRU-based cache package for Go.
GCache - An in-memory cache library for golang. It supports multiple eviction policies: LRU, LFU, ARC