(key string, amount int64)
| 196 | } |
| 197 | |
| 198 | func (c *Client) IncrBy(key string, amount int64) error { |
| 199 | client, err := newGrpcClient(c.Addr) |
| 200 | if err != nil { |
| 201 | return err |
| 202 | } |
| 203 | _, err = client.IncrBy(context.Background(), |
| 204 | &gstring.IncrByRequest{Key: key, Amount: int32(amount)}) |
| 205 | if err != nil { |
| 206 | return err |
| 207 | } |
| 208 | |
| 209 | return nil |
| 210 | } |
| 211 | |
| 212 | func (c *Client) IncrByFloat(key string, amount float64) error { |
| 213 | client, err := newGrpcClient(c.Addr) |
nothing calls this directly
no test coverage detected