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

Method GetMulti

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

Source from the content-addressed store, hash-verified

143}
144
145func (l *LRUCache) GetMulti(ctx context.Context, keys []string, opts ...Option) (result map[string][]byte) {
146 result, err := l.GetMultiWithError(ctx, keys, opts...)
147 if err != nil {
148 level.Warn(l.logger).Log("msg", "failed to get items from cache", "err", err)
149 }
150 return result
151}
152
153func (l *LRUCache) GetMultiWithError(ctx context.Context, keys []string, opts ...Option) (result map[string][]byte, err error) {
154 l.requests.Add(float64(len(keys)))

Callers

nothing calls this directly

Calls 2

GetMultiWithErrorMethod · 0.95
LogMethod · 0.45

Tested by

no test coverage detected