Registry / utility / golang-groupcache

golang-groupcache

JSON →
library0.0.0-20241129210726-2c02b8208cf8gogounverified

Package groupcache provides a data loading mechanism with caching and de-duplication that works across a set of peer processes.

go get github.com/golang/groupcache
INSTALL
IMPORT
SIG · GOLANG-GROUPCACHE
G
golang-groupcache
utilitygov0.0.0-20241129210726-2c02b8208cf8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

groupcache
github.com/golang/groupcache

Create a groupcache group and fetch a key, populating it via a GetterFunc.

import "github.com/golang/groupcache" peers := groupcache.NewHTTPPool("http://localhost:8080") g := groupcache.NewGroup("users", 64<<20, groupcache.GetterFunc(func(ctx groupcache.Context, key string, dest groupcache.Sink) error { dest.SetString("user:" + key) return nil })) var data string g.Get(nil, "123", groupcache.StringSink(&data)) fmt.Println(data)
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20241129210726-2c02b8208cf8latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
golang-groupcache — go get golang-groupcache · libregistry