Skip to content
masterclass Buddy

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.

Subscribe
  • DECRBY
  • INCR
  • INCRBY
  • GET
  • SET

Source: DECR - Upstash Documentation. Checked 2026-11-03.