clfu
Implementation of Constant Time LFU (least frequently used) cache in Go with concurrency safety. (by Narasimha1997)
lfu-cache
Strongly typed least frequently used (LFU) cache in Go with constant time complexity O(1) on all operations (by NdoleStudio)
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.
clfu
Posts with mentions or reviews of clfu.
We have used some of these posts to build our list of alternatives
and similar projects.
lfu-cache
Posts with mentions or reviews of lfu-cache.
We have used some of these posts to build our list of alternatives
and similar projects.
-
Least Frequently Used (LFU) Cache with Constant Time Complexity
The code for this LFU cache is on github, One improvement I'm thinking of is to make this cache generic so it can work in cases where the key is a string, int or some other comparible struct/pointer. The generics implementation can be found in 2.0-dev branch on github.
What are some alternatives?
When comparing clfu and lfu-cache you can also consider the following projects:
codeforces-go - 算法竞赛模板库 by 灵茶山艾府 💭💡🎈
ratelimiter - A concurrent rate limiter library for Golang based on Sliding-Window rate limiter algorithm.
GCache - An in-memory cache library for golang. It supports multiple eviction policies: LRU, LFU, ARC
Data-Structures-and-Algorithms - Data Structures and Algorithms implementation in Go
shardmap - A performant, highly concurrent and simple sharded hashmap implementation using generics