Description Usage Arguments Details Value Author(s) References See Also Examples
Increment the value corresponding to the given key/field combination by the specified value.
1 | redisHIncrBy(key, field, value, ...)
|
key |
A key name. |
field |
A field name. |
value |
The value to increment by (integer, numeric, or character). |
... |
Optional additional arguments. Specify |
The value should be an integer
(redisHIncrBy
) or a numeric value (redisHIncrByFloat
).
If the key/field value does not exist or contains a
value of a wrong type, set the
key to the value of "0" before to perform the operation.
The new value of key after the increment, returned as a character string.
B. W. Lewis
http://redis.io/commands
1 2 3 4 5 6 | ## Not run:
# Note initial value must be a raw character string!
redisHSet('A','x',charToRaw('5'))
redisHIncrBy('A','x',3)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.