MCPcopy Create free account
hub / github.com/cortexproject/cortex / Get

Method Get

pkg/ring/kv/multi.go:293–296  ·  view source on GitHub ↗

Get is a part of kv.Client interface.

(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

291
292// Get is a part of kv.Client interface.
293func (m *MultiClient) Get(ctx context.Context, key string) (any, error) {
294 _, kv := m.getPrimaryClient()
295 return kv.client.Get(ctx, key)
296}
297
298// Delete is a part of the kv.Client interface.
299func (m *MultiClient) Delete(ctx context.Context, key string) error {

Callers

nothing calls this directly

Calls 2

getPrimaryClientMethod · 0.95
GetMethod · 0.65

Tested by

no test coverage detected