MCPcopy
hub / github.com/grafana/dskit / GetMulti

Method GetMulti

cache/cache.go:30–30  ·  view source on GitHub ↗

GetMulti fetches multiple keys at once from a cache. In case of error, an empty map is returned and the error tracked/logged. One or more Option instances may be passed to modify the behavior of this GetMulti call.

(ctx context.Context, keys []string, opts ...Option)

Source from the content-addressed store, hash-verified

28 // an empty map is returned and the error tracked/logged. One or more Option
29 // instances may be passed to modify the behavior of this GetMulti call.
30 GetMulti(ctx context.Context, keys []string, opts ...Option) map[string][]byte
31
32 // GetMultiWithError fetches multiple keys at once from a cache and returns an error
33 // if the operation failed. It may return both results and an error if there are only partial

Callers 11

TestMemcachedClient_SetFunction · 0.65
GetMultiMethod · 0.65
GetMultiMethod · 0.65
GetMultiMethod · 0.65
TestLRUCache_SetAddFunction · 0.65
TestSnappyCacheFunction · 0.65

Implementers 7

Versionedcache/versioned.go
MemcachedClientcache/memcached_client.go
LRUCachecache/lru.go
MockCachecache/mock.go
SpanlessTracingCachecache/tracing.go
SnappyCachecache/compression.go

Calls

no outgoing calls

Tested by 10

TestMemcachedClient_SetFunction · 0.52
GetMultiMethod · 0.52
GetMultiMethod · 0.52
TestLRUCache_SetAddFunction · 0.52
TestSnappyCacheFunction · 0.52