INCR
StringsIncrement integer value of a key
Examples
Common usage examples
Increment counter by 1
INCR counterIncrement counter by 5
INCRBY counter 5Increment float value
INCRBYFLOAT price 0.5Notes
- Creates key with value 0 if doesn't exist
- Atomic operation