Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Latest commit

 

History

History
54 lines (35 loc) · 1.1 KB

File metadata and controls

54 lines (35 loc) · 1.1 KB
code type title description
true
page
hincrby
MemoryStorage:hincrby

hincrby

Increments the number stored in a hash field by the provided integer value.

[Redis documentation]


hincrby(key, field, value, [options], [callback])

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

Options

Option Type Description Default
queuable boolean Make this request queuable or not true

Return Value

Returns the MemoryStorage object to allow chaining.


Callback Response

Returns the newly incremented value.

Usage

<<< ./snippets/hincrby-1.java

Callback response:

45