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

Method Set

memcache/memcache.go:602–604  ·  view source on GitHub ↗

Set writes the given item, unconditionally.

(item *Item)

Source from the content-addressed store, hash-verified

600
601// Set writes the given item, unconditionally.
602func (c *Client) Set(item *Item) error {
603 return c.onItem(item, (*Client).set)
604}
605
606func (c *Client) set(rw *bufio.ReadWriter, item *Item) error {
607 return c.populateOne(rw, "set", item)

Callers 2

mustSetFFunction · 0.80
testWithClientFunction · 0.80

Calls 1

onItemMethod · 0.95

Tested by 2

mustSetFFunction · 0.64
testWithClientFunction · 0.64