INCRBY
Adds an integer increment to a string counter.
Strings · Example verified
Syntax covered here
INCRBY key incrementThe case starts with an existing numeric string and checks the updated value with GET.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> SET counter 10
"OK"
# connection: default
> INCRBY counter 3
13
# connection: default
> GET counter
"13"