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

Method GetMulti

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

Source from the content-addressed store, hash-verified

50}
51
52func (c *Versioned) GetMulti(ctx context.Context, keys []string, opts ...Option) map[string][]byte {
53 result, err := c.GetMultiWithError(ctx, keys, opts...)
54 if err != nil {
55 level.Warn(c.logger).Log("msg", "failed to get items from cache", "err", err)
56 }
57 return result
58}
59
60func (c *Versioned) GetMultiWithError(ctx context.Context, keys []string, opts ...Option) (map[string][]byte, error) {
61 versionedKeys := make([]string, len(keys))

Callers 1

TestVersionedFunction · 0.95

Calls 2

GetMultiWithErrorMethod · 0.95
LogMethod · 0.45

Tested by 1

TestVersionedFunction · 0.76