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.18 KB

File metadata and controls

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

zincrby

Increments the score of a member in a sorted set by the provided value.

[Redis documentation]


zincrby(key, member, increment, [options], [callback])

Arguments Type Description
key string Key identifier
member string Member element to increment
increment double 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 a double containing the updated member's score in the sorted set.

Usage

<<< ./snippets/zincrby-1.java

Callback response:

4.14159