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
INCR key
Increments the integer value of a key by 1. Creates key if it doesn't exist.
Increment counter by 1
INCR counter