MCPcopy Index your code
hub / github.com/golang/groupcache / Getter

Interface Getter

groupcache.go:41–49  ·  view source on GitHub ↗

A Getter loads data for a key.

Source from the content-addressed store, hash-verified

39
40// A Getter loads data for a key.
41type Getter interface {
42 // Get returns the value identified by key, populating dest.
43 //
44 // The returned data must be unversioned. That is, key must
45 // uniquely describe the loaded data, without an implicit
46 // current time, and without relying on cache expiration
47 // mechanisms.
48 Get(ctx context.Context, key string, dest Sink) error
49}
50
51// A GetterFunc implements Getter with a function.
52type GetterFunc func(ctx context.Context, key string, dest Sink) error

Callers 3

getLocallyMethod · 0.65
getFromPeerMethod · 0.65
getMethod · 0.65

Implementers 5

httpGetterhttp.go
fakePeergroupcache_test.go
Groupgroupcache.go
Cachelru/lru.go
Mapconsistenthash/consistenthash.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…