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

Method Get

kv/memberlist/memberlist_client.go:73–80  ·  view source on GitHub ↗

Get is part of kv.Client interface.

(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

71
72// Get is part of kv.Client interface.
73func (c *Client) Get(ctx context.Context, key string) (interface{}, error) {
74 err := c.awaitKVRunningOrStopping(ctx)
75 if err != nil {
76 return nil, err
77 }
78
79 return c.kv.Get(key, c.codec)
80}
81
82// Delete is part of kv.Client interface.
83func (c *Client) Delete(ctx context.Context, key string) error {

Callers 2

TestFastJoinFunction · 0.95

Calls 2

GetMethod · 0.65

Tested by 2

TestFastJoinFunction · 0.76