X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/a4460ef43f9625e6c09cdc327614d1b47c043489..12ebe2ac17a26ecf263f90b2acdf03db29b00223:/doc/ZrankCommand.html diff --git a/doc/ZrankCommand.html b/doc/ZrankCommand.html new file mode 100644 index 00000000..a0a3e39f --- /dev/null +++ b/doc/ZrankCommand.html @@ -0,0 +1,42 @@ + + + + + + + +
+ + + +
+ + +

ZrankCommand

+ +
+ +
+ +
+ +

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.
+
+
+ +
+
+ + +