Registry / utility / mailgun-groupcache-v2

mailgun-groupcache-v2

JSON →
library2.5.0gogounverified

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

go get github.com/mailgun/groupcache/v2
INSTALL
IMPORT
SIG · MAILGUN-GROUPCACHE
M
mailgun-groupcache-v2
utilitygov2.5.0
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/mailgun/groupcache/v2

Create a groupcache group and retrieve a cached value.

package main import ( "fmt" "github.com/mailgun/groupcache/v2" ) func main() { peers := groupcache.NewHTTPPool("http://localhost:8080") group := groupcache.NewGroup("example", 64<<20, groupcache.GetterFunc( func(ctx groupcache.Context, key string, dest groupcache.Sink) error { dest.SetString("value") return nil }, )) var data string group.Get(nil, "key", groupcache.StringSink(&data)) fmt.Println(data) }
Debug
Known issues
gotchaThis is a fork of the original groupcache; API may differ from golang.org/x/groupcache.
fix
Refer to the documentation for this specific version.
affects: *
Upgrade
Version history
2.5.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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