gcache
gcache copied to clipboard
An in-memory cache library for golang. It supports multiple eviction policies: LRU, LFU, ARC
Currently, the cache doesn't evict an object when the expiration of that object passes but rather waits until the next `Get()` call before evicting it. This is problematic when the...
Panicking in a library is an anti-pattern in Go. It results in indeterministic and unpredictable code. The caller has no idea when a library is going to panic unless they...
I'm using simple gcache. I've implemented LoaderFunc and addedFunc using a database as a store. When gcache loads a new value using LoaderFunc and set new one to a cache....
Hello @bluele What's the status of `gcache` ? There hasn't been any updates in over a year, and several PR's would help add functionality to this library. Thanks!
add func GetOrSetFunc return the value and set if the key not found update #10
Not sure if there any plan to support generics, I made one at https://github.com/szyhf/go-gcache, just simply replace the implement. Really thanks for this awsome lib, if there any plan I...
Thanks for the library!
I am reaching out to inquire about the potential for cache pollution in this LRU implementation. In scenarios where the cache handles a mix of frequently and infrequently accessed data,...