See Client interface for documentation.
(key string, value []byte)
| 623 | |
| 624 | // See Client interface for documentation. |
| 625 | func (c *RawBinaryClient) Prepend(key string, value []byte) MutateResponse { |
| 626 | item := &Item{ |
| 627 | Key: key, |
| 628 | Value: value, |
| 629 | } |
| 630 | |
| 631 | c.mutex.Lock() |
| 632 | defer c.mutex.Unlock() |
| 633 | |
| 634 | if resp := c.sendMutateRequest(opPrepend, item, false); resp != nil { |
| 635 | return resp |
| 636 | } |
| 637 | |
| 638 | return c.receiveMutateResponse(opPrepend, item.Key) |
| 639 | } |
| 640 | |
| 641 | func (c *RawBinaryClient) sendCountRequest( |
| 642 | code opCode, |
nothing calls this directly
no test coverage detected