Get returns current value associated with given key. No communication with other nodes in the cluster is done here.
(key string, codec codec.Codec)
| 1036 | // Get returns current value associated with given key. |
| 1037 | // No communication with other nodes in the cluster is done here. |
| 1038 | func (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. |
| 1044 | func (m *KV) get(key string, _ codec.Codec) (out interface{}, version uint, err error) { |