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

Method Decrement

memcache/raw_binary_client.go:704–718  ·  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

702
703// See Client interface for documentation.
704func (c *RawBinaryClient) Decrement(
705 key string,
706 delta uint64,
707 initValue uint64,
708 expiration uint32) CountResponse {
709
710 c.mutex.Lock()
711 defer c.mutex.Unlock()
712
713 resp := c.sendCountRequest(opDecrement, key, delta, initValue, expiration)
714 if resp != nil {
715 return resp
716 }
717 return c.receiveCountResponse(opDecrement, key)
718}
719
720// See Client interface for documentation.
721func (c *RawBinaryClient) Stat(statsKey string) StatResponse {

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