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

Method Get

kv/memberlist/memberlist_client.go:1038–1041  ·  view source on GitHub ↗

Get returns current value associated with given key. No communication with other nodes in the cluster is done here.

(key string, codec codec.Codec)

Source from the content-addressed store, hash-verified

1036// Get returns current value associated with given key.
1037// No communication with other nodes in the cluster is done here.
1038func (m *KV) Get(key string, codec codec.Codec) (interface{}, error) {
1039 val, _, err := m.get(key, codec)
1040 return val, err
1041}
1042
1043// Returns current value with removed tombstones.
1044func (m *KV) get(key string, _ codec.Codec) (out interface{}, version uint, err error) {

Calls 1

getMethod · 0.95