redis/incr

Increment Value

Increment integer value

string
counter

Command

INCR key

Explanation

Increments the integer value of a key by 1. Creates key if it doesn't exist.

Examples

Increment counter by 1

INCR counter