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

Method Increment

memcache/raw_binary_client.go:687–701  ·  view source on GitHub ↗

See Client interface for documentation.

(
	key string,
	delta uint64,
	initValue uint64,
	expiration uint32)

Source from the content-addressed store, hash-verified

685
686// See Client interface for documentation.
687func (c *RawBinaryClient) Increment(
688 key string,
689 delta uint64,
690 initValue uint64,
691 expiration uint32) CountResponse {
692
693 c.mutex.Lock()
694 defer c.mutex.Unlock()
695
696 resp := c.sendCountRequest(opIncrement, key, delta, initValue, expiration)
697 if resp != nil {
698 return resp
699 }
700 return c.receiveCountResponse(opIncrement, key)
701}
702
703// See Client interface for documentation.
704func (c *RawBinaryClient) Decrement(

Callers

nothing calls this directly

Calls 4

sendCountRequestMethod · 0.95
receiveCountResponseMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected