BigCache
Efficient cache for gigabytes of data written in Go
To meet the requirements presented at the beginning of this chapter, we implemented our own cache and named it BigCache. The BigCache provides shards, eviction and it omits GC for cache entries. As a result, it is very fast cache even for large number of entries. Freecache is the only one of the available in-memory caches in Go which provides that kind of functionality. BigCache is an alternative solution for it and reduces GC overhead differently, therefore we decided to share it. Fast,...