MCPcopy
hub / github.com/bradfitz/gomemcache / Increment

Method Increment

memcache/memcache.go:792–794  ·  view source on GitHub ↗

Increment atomically increments key by delta. The return value is the new value after being incremented or an error. If the value didn't exist in memcached the error is ErrCacheMiss. The value in memcached must be an decimal number, or an error will be returned. On 64-bit overflow, the new value wra

(key string, delta uint64)

Source from the content-addressed store, hash-verified

790// memcached must be an decimal number, or an error will be returned.
791// On 64-bit overflow, the new value wraps around.
792func (c *Client) Increment(key string, delta uint64) (newValue uint64, err error) {
793 return c.incrDecr("incr", key, delta)
794}
795
796// Decrement atomically decrements key by delta. The return value is
797// the new value after being decremented or an error. If the value

Callers 1

testWithClientFunction · 0.80

Calls 1

incrDecrMethod · 0.95

Tested by 1

testWithClientFunction · 0.64