Skip to content
masterclass Buddy

Upstash · Method

redis.incr

INCR adds one to the integer stored at a key and returns the new value. A missing key is treated as zero, so the first call returns one.

Last updated

Syntax

INCR <key>

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • GETSET
  • INCRBY
  • EXPIRE

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