(key string)
| 225 | } |
| 226 | |
| 227 | func (c *Client) Decr(key string) error { |
| 228 | client, err := newGrpcClient(c.Addr) |
| 229 | if err != nil { |
| 230 | return err |
| 231 | } |
| 232 | |
| 233 | _, err = client.Decr(context.Background(), |
| 234 | &gstring.DecrRequest{Key: key}) |
| 235 | if err != nil { |
| 236 | return err |
| 237 | } |
| 238 | |
| 239 | return nil |
| 240 | } |
| 241 | |
| 242 | func (c *Client) DecrBy(key string, amount int64) error { |
| 243 | client, err := newGrpcClient(c.Addr) |
nothing calls this directly
no test coverage detected