{"id":49883,"library":"golang-groupcache","title":"Groupcache","description":"Package groupcache provides a data loading mechanism with caching and de-duplication that works across a set of peer processes.","status":"active","version":"0.0.0-20241129210726-2c02b8208cf8","language":"go","source_language":null,"source_url":"https://github.com/golang/groupcache","tags":["caching","distributed","groupcache","peer-to-peer"],"install":[{"cmd":"go get github.com/golang/groupcache","lang":"bash","label":"Install github.com/golang/groupcache"}],"dependencies":[],"imports":[{"symbol":"groupcache","correct":"github.com/golang/groupcache"}],"quickstart":{"code":"import \"github.com/golang/groupcache\"\n\npeers := groupcache.NewHTTPPool(\"http://localhost:8080\")\ng := groupcache.NewGroup(\"users\", 64<<20, groupcache.GetterFunc(func(ctx groupcache.Context, key string, dest groupcache.Sink) error {\n    dest.SetString(\"user:\" + key)\n    return nil\n}))\nvar data string\ng.Get(nil, \"123\", groupcache.StringSink(&data))\nfmt.Println(data)","lang":"go","description":"Create a groupcache group and fetch a key, populating it via a GetterFunc."},"warnings":[],"env_vars":null,"search_vec":"'across':17 'cach':10,23 'data':6 'de':13 'de-dupl':12 'distribut':24 'duplic':14 'groupcach':1,3,25 'load':7 'mechan':8 'packag':2 'peer':21,27,29 'peer-to-p':26 'process':22 'provid':4 'set':19 'work':16","created_at":"2026-06-14T18:19:15.126787+00:00","updated_at":"2026-06-14T18:19:15.126787+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/golang/groupcache","github":"https://github.com/golang/groupcache","docs":"https://pkg.go.dev/github.com/golang/groupcache#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-14","next_check":"2026-12-11","install_tag":null}}