Upstash · Method
redis.decr
DECR subtracts one from the integer stored at a Redis key and returns the new value. It performs the read, subtraction, and write atomically.
Last updated
Syntax
DECR <key>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
DECRBYINCRINCRBYGETSET