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

Method add

memcache/memcache.go:616–618  ·  view source on GitHub ↗
(rw *bufio.ReadWriter, item *Item)

Source from the content-addressed store, hash-verified

614}
615
616func (c *Client) add(rw *bufio.ReadWriter, item *Item) error {
617 return c.populateOne(rw, "add", item)
618}
619
620// Replace writes the given item, but only if the server *does*
621// already hold data for this key

Callers

nothing calls this directly

Calls 1

populateOneMethod · 0.95

Tested by

no test coverage detected