MCPcopy Create free account
hub / github.com/golang/appengine / Add

Method Add

memcache/memcache.go:479–481  ·  view source on GitHub ↗

Add writes the given item, if no value already exists for its key. ErrNotStored is returned if that condition is not met.

(c context.Context, item *Item)

Source from the content-addressed store, hash-verified

477// Add writes the given item, if no value already exists for its key.
478// ErrNotStored is returned if that condition is not met.
479func (cd Codec) Add(c context.Context, item *Item) error {
480 return singleError(cd.set(c, []*Item{item}, pb.MemcacheSetRequest_ADD))
481}
482
483// AddMulti is a batch version of Add.
484// appengine.MultiError may be returned.

Callers 3

RoundTripMethod · 0.45
TestDialLimitFunction · 0.45
newAddReqFunction · 0.45

Calls 2

setMethod · 0.95
singleErrorFunction · 0.70

Tested by 1

TestDialLimitFunction · 0.36