(key string)
| 183 | } |
| 184 | |
| 185 | func (c *Client) Incr(key string) error { |
| 186 | client, err := newGrpcClient(c.Addr) |
| 187 | if err != nil { |
| 188 | return err |
| 189 | } |
| 190 | _, err = client.Incr(context.Background(), &gstring.IncrRequest{Key: key}) |
| 191 | if err != nil { |
| 192 | return err |
| 193 | } |
| 194 | |
| 195 | return nil |
| 196 | } |
| 197 | |
| 198 | func (c *Client) IncrBy(key string, amount int64) error { |
| 199 | client, err := newGrpcClient(c.Addr) |
nothing calls this directly
no test coverage detected