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

Method GetMulti

cache/tracing.go:42–48  ·  view source on GitHub ↗
(ctx context.Context, keys []string, opts ...Option)

Source from the content-addressed store, hash-verified

40}
41
42func (t *SpanlessTracingCache) GetMulti(ctx context.Context, keys []string, opts ...Option) (result map[string][]byte) {
43 result, err := t.GetMultiWithError(ctx, keys, opts...)
44 if err != nil {
45 level.Warn(t.logger).Log("msg", "failed to get items from cache", "err", err)
46 }
47 return
48}
49
50func (t *SpanlessTracingCache) GetMultiWithError(ctx context.Context, keys []string, opts ...Option) (result map[string][]byte, err error) {
51 var (

Callers

nothing calls this directly

Calls 2

GetMultiWithErrorMethod · 0.95
LogMethod · 0.45

Tested by

no test coverage detected