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

Method GetMulti

cache/compression.go:96–102  ·  view source on GitHub ↗

GetMulti implements Cache.

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

Source from the content-addressed store, hash-verified

94
95// GetMulti implements Cache.
96func (s *SnappyCache) GetMulti(ctx context.Context, keys []string, opts ...Option) map[string][]byte {
97 result, err := s.GetMultiWithError(ctx, keys, opts...)
98 if err != nil {
99 level.Warn(s.logger).Log("msg", "failed to get items from cache", "err", err)
100 }
101 return result
102}
103
104// GetMultiWithError implements Cache.
105func (s *SnappyCache) GetMultiWithError(ctx context.Context, keys []string, opts ...Option) (map[string][]byte, error) {

Callers

nothing calls this directly

Calls 2

GetMultiWithErrorMethod · 0.95
LogMethod · 0.45

Tested by

no test coverage detected