(key string)
| 555 | } |
| 556 | |
| 557 | func (c *RawBinaryClient) sendDeleteRequest(key string) MutateResponse { |
| 558 | if !isValidKeyString(key) { |
| 559 | return NewMutateErrorResponse( |
| 560 | key, |
| 561 | errors.New("Invalid key")) |
| 562 | } |
| 563 | |
| 564 | if err := c.sendRequest(opDelete, 0, []byte(key), nil); err != nil { |
| 565 | return NewMutateErrorResponse(key, err) |
| 566 | } |
| 567 | return nil |
| 568 | } |
| 569 | |
| 570 | // See Client interface for documentation. |
| 571 | func (c *RawBinaryClient) Delete(key string) MutateResponse { |
no test coverage detected