HINCRBY
Synopsis
HINCRBY key field delta
This command adds delta
to the number that is associated with the given field field
for the hash key
. The numeric value must a 64-bit signed integer.
Return value
Returns the value after addition.
Examples
$ HSET yugahash f1 5
1
$ HINCRBY yugahash f1 3
8
$ HINCRBY yugahash non-existent-f2 4
4
$ HINCRBY non-existent-yugahash f1 3
3
See also
hexists
, hget
, hgetall
, hkeys
, hlen
, hmget
, hmset
, hset
, hincrby
, hstrlen
, hvals