Get is part of kv.Client interface.
(ctx context.Context, key string)
| 71 | |
| 72 | // Get is part of kv.Client interface. |
| 73 | func (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. |
| 83 | func (c *Client) Delete(ctx context.Context, key string) error { |