(key string, amount float64)
| 210 | } |
| 211 | |
| 212 | func (c *Client) IncrByFloat(key string, amount float64) error { |
| 213 | client, err := newGrpcClient(c.Addr) |
| 214 | if err != nil { |
| 215 | return err |
| 216 | } |
| 217 | |
| 218 | _, err = client.IncrByFloat(context.Background(), |
| 219 | &gstring.IncrByFloatRequest{Key: key, Amount: amount}) |
| 220 | if err != nil { |
| 221 | return err |
| 222 | } |
| 223 | |
| 224 | return nil |
| 225 | } |
| 226 | |
| 227 | func (c *Client) Decr(key string) error { |
| 228 | client, err := newGrpcClient(c.Addr) |
nothing calls this directly
no test coverage detected