Hacker GitHub

← All repos

golang/groupcache

View on GitHub ↗ ★ 13,334 Go

groupcache is a caching and cache-filling library, intended as a replacement for memcached in many cases.

24 mentions on Hacker News by 24 people: 4 stories, 20 comments · first 2013-07-26 · latest 2026-10-02

Mentions per year 24 mentions · busiest year 2013 (7)
20082026
  1. ▲ 2
    Show HN: S3-Accelerator
    story by dangoodmanUT · 2026-10-02 · 1 comment
  2. …https://github.com/perkeep/perkeep/commit/6f9f0bdda9c9c1f147... d And later I put it in https://pkg.go.dev/github.com/golang/groupcache/singleflight (groupcache was written for dl.google.com) And a private copy in Go's net package in Jun…
    comment by bradfitz · 2026-05-19 · in Understanding Singleflight in Go
  3. …Architecturally, segcache [3] looks interesting. [1]: https://github.com/olric-data/olric [2]: https://github.com/golang/groupcache [3]: https://www.usenix.org/conference/nsdi21/presentation/yang-j...
    comment by maypok86 · 2025-07-02 · in The Evolution of Caching Libraries in Go
  4. groupcache[ https://github.com/golang/groupcache ] has been around for some time now.
  5. …It also looks like there is a maintained fork[1], but no clue with regards to the quality. [1]: https://github.com/golang/groupcache/issues/158#issuecomment...
  6. It's using singleflight which was later on added to the Go std lib: https://github.com/golang/groupcache/tree/master/singlefligh... https://pkg.go.dev/golang.org/x/sync/singleflight
  7. …routines attempting to query the same key make one fetch between them and share the same result. https://github.com/golang/groupcache?tab=readme-ov-file#load...
  8. I really enjoyed google's https://github.com/golang/groupcache . Learned both about the language, and quality network application design, in a small package.
  9. …Or in-process distributed rate limiting: https://github.com/mailgun/gubernator https://github.com/golang/groupcache : groupcache is in production use by dl.google.com (its original user), parts of Blogger, parts of Google Code, parts of
  10. …is an b-tree based on-disk key/value store and it's not distributed. Olric can be compared with https://github.com/golang/groupcache and it's highly inspired by Amazon DynamoDB paper and Hazelcast.
  11. Here is the code for groupcache: https://github.com/golang/groupcache There is no "distributed mode" as far as I can see. It is an in memory library for a K/V cache that you use in your code. That's it.
  12. …However, it uses its own in-memory cache on your app servers instead of an external cache service. https://github.com/golang/groupcache https://news.ycombinator.com/item?id=6121501 https://talks.golang.org/2013/oscon-dl.slide#43
    comment by technoweenie · 2019-04-17 · in Thundering Herds and Promises
  13. …thousand line of code C++ system at google. Why do you think Golang fiber/gorotine are worse ? (1) https://github.com/golang/groupcache
  14. ▲ 4
    Groupcache – A Go caching library, intended as a replacement for memcached
    story by tombenner · 2014-08-23 · 1 comment
  15. …and distributed systems run on top of. Raft ( https://github.com/goraft/raft ) and groupcache ( https://github.com/golang/groupcache ) come to mind as examples. That's a good point though. A lot of people mean different things by systems…
    comment by mustpax · 2014-06-29 · in Why Go Is Not Good
  16. Exactly. "...this isn't a database" :/ Distributed caches aren't new either. [e.g. https://github.com/golang/groupcache ] Can we get a title change to something that labels it a Distributed Cache? [e.g. Shown HN: gun – Massively…
    comment by opendais · 2014-04-14 · in Gun – Distributed, embedded graph engine
  17. …[2] http://www.linuxvirtualserver.org [3] http://basho.com/riak/ [4] https://github.com/golang/groupcache
    comment by SEJeff · 2014-02-16 · in Losing graciously
  18. https://github.com/golang/groupcache/blob/master/sinks.go#L5... Uh oh. The dreaded cast we see here http://how-bazaar.blogspot.co.nz/2013/07/stunned-by-go.html
  19. …method. The size of each group's cache is set when created via NewGroup[1]. -- [1] http://godoc.org/github.com/golang/groupcache#NewGroup
  20. ▲ 341
    Groupcache: an alternative to memcached, written in Go
    story by sferik · 2013-07-29 · 97 comments
  21. …your Go application, it's not going to have a man page. It already has API documentation: http://godoc.org/github.com/golang/groupcache
    comment by kisielk · 2013-07-27 · in Porting dl.google.com from C++ to Go
  22. …rewrite, groupcache[2]. [1]: https://groups.google.com/forum/#!searchin/golang-nuts/dl.go... [2]: https://github.com/golang/groupcache
    comment by conroy · 2013-07-26 · in Porting dl.google.com from C++ to Go
  23. See also https://github.com/golang/groupcache for the peer-to-peer memcached replacement mentioned in the slides.
    comment by packetslave · 2013-07-26 · in Porting dl.google.com from C++ to Go
  24. ▲ 12
    Groupcache (memcached replacement in Go)
    story by ImJasonH · 2013-07-26 · 2 comments