Hacker GitHub

← All repos

allegro/bigcache

View on GitHub ↗ ★ 8,176 Go

Efficient cache for gigabytes of data written in Go.

7 mentions on Hacker News by 7 people: 3 stories, 4 comments · first 2016-03-23 · latest 2019-12-23

Mentions per year 7 mentions · busiest year 2019 (5)
20082026
  1. …but this seems like a pretty undesirable property. The code for the hash function is found here: https://github.com/allegro/bigcache/blob/f64abe8f4fe2f5769bd... // Sum64 gets the string and returns its uint64 hash value. func (f fnv64a)…
  2. …contains data that can and will be GC'd once no longer used. This is the type of the variable: https://github.com/allegro/bigcache/blob/master/bigcache.go
  3. …creating the cache struct as a global var and therefore this cache will never be garbage collected? https://github.com/allegro/bigcache/blob/master/server/serve... I ask this because I’ve run into a problem with this in the past.
  4. …wouldn't offer a better solution for this use case. [1] https://github.com/coocood/freecache [2] https://github.com/allegro/bigcache
    comment by henpa · 2017-05-27 · in Go and a not tiny amount of memory