Commands.app

INCR

Strings

Increment integer value of a key

Examples
Common usage examples

Increment counter by 1

INCR counter

Increment counter by 5

INCRBY counter 5

Increment float value

INCRBYFLOAT price 0.5
Notes
  • Creates key with value 0 if doesn't exist
  • Atomic operation
Related Commands
You might also find these useful