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

Function Set

memcache/memcache.go:380–382  ·  view source on GitHub ↗

Set writes the given item, unconditionally.

(c context.Context, item *Item)

Source from the content-addressed store, hash-verified

378
379// Set writes the given item, unconditionally.
380func Set(c context.Context, item *Item) error {
381 return singleError(set(c, []*Item{item}, nil, pb.MemcacheSetRequest_SET))
382}
383
384// SetMulti is a batch version of Set.
385// appengine.MultiError may be returned.

Callers 4

TestBasicAPICallsFunction · 0.92
TestSetRequestFunction · 0.70
TestSetResponseFunction · 0.70
TestSetResponseErrorFunction · 0.70

Calls 2

singleErrorFunction · 0.70
setFunction · 0.70

Tested by 4

TestBasicAPICallsFunction · 0.74
TestSetRequestFunction · 0.56
TestSetResponseFunction · 0.56
TestSetResponseErrorFunction · 0.56