MCPcopy Create free account
hub / github.com/dbProjectRED/redimo.go / DECRBY

Method DECRBY

strings.go:306–308  ·  view source on GitHub ↗

DECRBY decrements the number stored at the key with the given delta (n = n - delta) and returns the new value. If the key does not exist, it will be initialized with zero before applying the operation. If there is an existing value at the key with a non-numeric type (string, bytes, etc.) the operat

(key string, delta int64)

Source from the content-addressed store, hash-verified

304//
305// Works similar to https://redis.io/commands/decrby
306func (c Client) DECRBY(key string, delta int64) (after int64, err error) {
307 return c.INCRBY(key, -delta)
308}

Callers 1

TestCountersFunction · 0.80

Calls 1

INCRBYMethod · 0.95

Tested by 1

TestCountersFunction · 0.64