X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/46b614edf7522e2bf8d3512fab347a9c9d4a1d70..df541beae372f40e9ce82a0780171e7d7a8e67de:/doc/ZrankCommand.html diff --git a/doc/ZrankCommand.html b/doc/ZrankCommand.html index a0a3e39f..ccf8c23a 100644 --- a/doc/ZrankCommand.html +++ b/doc/ZrankCommand.html @@ -30,8 +30,9 @@

ZRANK _key_ _member_ (Redis >

1.3.4) =

ZREVRANK _key_ _member_ (Redis >

1.3.4) = Time complexity: O(log(N))
ZRANK returns the rank of the member in the sorted set, with scores ordered from low to high. ZREVRANK returns the rank with scores ordered from high to low. When the given member does not exist in the sorted set, the special value 'nil' is returned. The returned rank (or index) of the member is 0-based for both commands.
-

Return value

Bulk reply, specifically:

-the rank (an integer number) represented as an string.
+

Return value

Integer reply or a nil bulk reply, specifically:

+the rank of the element as an integer reply if the element exists.
+A nil bulk reply if there is no such element.