MCPcopy
hub / github.com/bradfitz/gomemcache / Append

Method Append

memcache/memcache.go:632–634  ·  view source on GitHub ↗

Append appends 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)

Source from the content-addressed store, hash-verified

630// Append appends the given item to the existing item, if a value already
631// exists for its key. ErrNotStored is returned if that condition is not met.
632func (c *Client) Append(item *Item) error {
633 return c.onItem(item, (*Client).append)
634}
635
636func (c *Client) append(rw *bufio.ReadWriter, item *Item) error {
637 return c.populateOne(rw, "append", item)

Callers 1

testWithClientFunction · 0.80

Calls 1

onItemMethod · 0.95

Tested by 1

testWithClientFunction · 0.64