X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/570333015147ce01646ff61e50afc210a12408db..43f30ac0f9bcc4a7afb06136a8dfe5b703be7935:/doc/ZrangeCommand.html diff --git a/doc/ZrangeCommand.html b/doc/ZrangeCommand.html index 9402fa49..3a4cfe8f 100644 --- a/doc/ZrangeCommand.html +++ b/doc/ZrangeCommand.html @@ -16,7 +16,7 @@
-ZrangeCommand: Contents
  ZRANGE _key_ _start_ _end_ (Redis >
  ZREVRANGE _key_ _start_ _end_ (Redis >
    Return value
    See also +ZrangeCommand: Contents
  ZRANGE _key_ _start_ _end_ (Redis >
  ZREVRANGE _key_ _start_ _end_ (Redis >
    Return value

ZrangeCommand

@@ -26,13 +26,13 @@
-

ZRANGE _key_ _start_ _end_ (Redis >

1.1) = + #sidebar SortedSetCommandsSidebar

ZRANGE _key_ _start_ _end_ (Redis >

1.1) =

ZREVRANGE _key_ _start_ _end_ (Redis >

1.1) = Time complexity: O(log(N))+O(M) (with N being the number of elements in the sorted set and M the number of elements requested)
Return the specified elements of the sorted set at the specifiedkey. The elements are considered sorted from the lowerest to the highestscore when using ZRANGE, and in the reverse order when using ZREVRANGE.Start and end are zero-based indexes. 0 is the first elementof the sorted set (the one with the lowerest score when using ZRANGE), 1the next element by score and so on.
_start_ and end can also be negative numbers indicating offsetsfrom the end of the sorted set. For example -1 is the last element ofthe sorted set, -2 the penultimate element and so on.
Indexes out of range will not produce an error: if start is overthe end of the sorted set, or start > end, an empty list is returned.If end is over the end of the sorted set Redis will threat it just likethe last element of the sorted set.
-

Return value

Multi bulk reply, specifically a list of elements in the specified range.

See also

- +

Return value

Multi bulk reply, specifically a list of elements in the specified range. +