Prepend prepends the given item to the existing item, if a value already exists for its key. ErrNotStored is returned if that condition is not met.
(item *Item)
| 640 | // Prepend prepends the given item to the existing item, if a value already |
| 641 | // exists for its key. ErrNotStored is returned if that condition is not met. |
| 642 | func (c *Client) Prepend(item *Item) error { |
| 643 | return c.onItem(item, (*Client).prepend) |
| 644 | } |
| 645 | |
| 646 | func (c *Client) prepend(rw *bufio.ReadWriter, item *Item) error { |
| 647 | return c.populateOne(rw, "prepend", item) |