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

Method GetMultiWithError

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

GetMultiWithError fetches multiple keys at once from a cache and returns an error if the operation failed. It may return both results and an error if there are only partial failures. One or more Option instances may be passed to modify the behavior of this GetMultiWithError call.

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

Source from the content-addressed store, hash-verified

34 // failures. One or more Option instances may be passed to modify the
35 // behavior of this GetMultiWithError call.
36 GetMultiWithError(ctx context.Context, keys []string, opts ...Option) (map[string][]byte, error)
37
38 // SetAsync enqueues an operation to store a key into a cache. In case the underlying
39 // operation fails, the error will be tracked/logged.

Callers 10

GetMultiWithErrorMethod · 0.65
GetMultiWithErrorMethod · 0.65
GetMultiWithErrorMethod · 0.65
GetMultiWithErrorMethod · 0.65
GetMultiWithErrorMethod · 0.65
GetMultiWithErrorMethod · 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