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

Method CAS

kv/memberlist/memberlist_client.go:93–100  ·  view source on GitHub ↗

CAS is part of kv.Client interface

(ctx context.Context, key string, f func(in interface{}) (out interface{}, retry bool, err error))

Source from the content-addressed store, hash-verified

91
92// CAS is part of kv.Client interface
93func (c *Client) CAS(ctx context.Context, key string, f func(in interface{}) (out interface{}, retry bool, err error)) error {
94 err := c.awaitKVRunningOrStopping(ctx)
95 if err != nil {
96 return err
97 }
98
99 return c.kv.CAS(ctx, key, c.codec, f)
100}
101
102// WatchKey is part of kv.Client interface.
103func (c *Client) WatchKey(ctx context.Context, key string, f func(interface{}) bool) {

Callers 4

TestMultipleCodecsFunction · 0.95
TestPageFunction · 0.95

Calls 2

CASMethod · 0.65

Tested by 4

TestMultipleCodecsFunction · 0.76
TestPageFunction · 0.76