code | type | title | description |
---|---|---|---|
true |
page |
hincrby |
MemoryStorage:hincrby |
Increments the number stored in a hash field by the provided integer value.
Arguments | Type | Description |
---|---|---|
key |
string | Key identifier |
field |
string | Hash field to increment |
value |
int | Increment value |
options |
JSON Object | Optional parameters |
callback |
function | Callback |
Option | Type | Description | Default |
---|---|---|---|
queuable |
boolean | Make this request queuable or not | true |
Returns the MemoryStorage
object to allow chaining.
Returns the newly incremented value.
<<< ./snippets/hincrby-1.java
Callback response:
45