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

Method Delete

pkg/ring/kv/multi.go:299–302  ·  view source on GitHub ↗

Delete is a part of the kv.Client interface.

(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

297
298// Delete is a part of the kv.Client interface.
299func (m *MultiClient) Delete(ctx context.Context, key string) error {
300 _, kv := m.getPrimaryClient()
301 return kv.client.Delete(ctx, key)
302}
303
304// CAS is a part of kv.Client interface.
305func (m *MultiClient) CAS(ctx context.Context, key string, f func(in any) (out any, retry bool, err error)) error {

Callers

nothing calls this directly

Calls 2

getPrimaryClientMethod · 0.95
DeleteMethod · 0.65

Tested by

no test coverage detected