HINCRBY
Adds an integer increment to a hash field.
Hashes · Example verified
Syntax covered here
HINCRBY key field incrementThe case targets a missing field in an existing hash and initializes it from zero before incrementing.
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
> HSET user name Ada
1
# connection: default
> HINCRBY user visits 2
2