lru
LRU cache using go generics (by dboslee)
go-generics-cache
A key:value store/cache library written in Go generics. LRU, LFU, FIFO, MRU, Clock support. (by Code-Hex)
lru | go-generics-cache | |
---|---|---|
5 | 9 | |
118 | 427 | |
- | - | |
0.0 | 5.8 | |
almost 2 years ago | 26 days ago | |
Go | Go | |
MIT License | MIT License |
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.
go-generics-cache
Posts with mentions or reviews of go-generics-cache.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-04.
- GitHub - Code-Hex/go-generics-cache at v1.3.0
-
VCache vs Go-Cache
Interesting question! I haven't encountered similar solutions like https://github.com/Code-Hex/go-generics-cache before. I will definitely compare performance and report back in this post! And actually, it probably makes sense to use generics... I will have to see how it performs.
- Release v1.2.0 · Code-Hex/go-generics-cache
- Release Improved memory usage with introduced janitor · Code-Hex/go-generics-cache
-
Some tips and bothers for Go 1.18 Generics
I wanted to provide two methods, Increment and Decrement. They can add or subtract values from the go-generics-cache library if the stored value satisfies the Number constraint.
-
Show HN: The first Go 1.18 generics cache library
I’ve written Go 1.18 generics cache library (https://github.com/Code-Hex/go-generics-cache).
There is probably no third-party library in the world that uses Go 1.18 generics yet.
So I wrote generics to see how it could be used and if it would actually be useful.
Please give me your feedback! Thanks!
- go-generics-cache: An in-memory key:value store/cache library for Go Generics
What are some alternatives?
When comparing lru and go-generics-cache you can also consider the following projects:
go-cache-benchmark - Cache benchmark for Golang
cache - Mango Cache 🥭 - Partial implementation of Guava Cache in Go (golang).