(key string, amount int64)
| 240 | } |
| 241 | |
| 242 | func (c *Client) DecrBy(key string, amount int64) error { |
| 243 | client, err := newGrpcClient(c.Addr) |
| 244 | if err != nil { |
| 245 | return err |
| 246 | } |
| 247 | |
| 248 | _, err = client.DecrBy(context.Background(), |
| 249 | &gstring.DecrByRequest{Key: key, Amount: int32(amount)}) |
| 250 | if err != nil { |
| 251 | return err |
| 252 | } |
| 253 | |
| 254 | return nil |
| 255 | } |
| 256 | |
| 257 | func (c *Client) Exists(key string) (bool, error) { |
| 258 | client, err := newGrpcClient(c.Addr) |
nothing calls this directly
no test coverage detected