redis.set("key", 6) assert redis.decrby("key", 4) == 2
Decrement the integer value of a key by a given number.
Was this page helpful?