MCPcopy
hub / github.com/dropbox/godropbox / Add

Method Add

memcache/interface.go:170–170  ·  view source on GitHub ↗

This adds a single entry into memcache. Note: Add will fail if the item already exist in memcache.

(item *Item)

Source from the content-addressed store, hash-verified

168 // This adds a single entry into memcache. Note: Add will fail if the
169 // item already exist in memcache.
170 Add(item *Item) MutateResponse
171
172 // Batch version of the Add method. Note that the response entries
173 // ordering is undefined (i.e., may not match the input ordering).

Callers 15

TestStoreItemNotStoreMethod · 0.65
TestAddMethod · 0.65
TestAddInvalidCasIdMethod · 0.65
RegisterMethod · 0.65
GetShardMethod · 0.65
GetShardsForKeysMethod · 0.65
GetShardsForItemsMethod · 0.65
clientExampleFunction · 0.65
GetMethod · 0.65

Implementers 4

MockClientmemcache/mock_client.go
RawBinaryClientmemcache/raw_binary_client.go
ShardedClientmemcache/sharded_client.go
RawAsciiClientmemcache/raw_ascii_client.go

Calls

no outgoing calls

Tested by 8

TestStoreItemNotStoreMethod · 0.52
TestAddMethod · 0.52
TestAddInvalidCasIdMethod · 0.52
RegisterMethod · 0.52
clientExampleFunction · 0.52
TestAddSimpleMethod · 0.52
TestAddExistsMethod · 0.52