X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/efc3408748061a08ec5ff18e392c30f31f5094a2..06e09c9b586d0e2c5d91dc596f871be56c6e0971:/doc/ZrangebyscoreCommand.html diff --git a/doc/ZrangebyscoreCommand.html b/doc/ZrangebyscoreCommand.html deleted file mode 100644 index d9b310d4..00000000 --- a/doc/ZrangebyscoreCommand.html +++ /dev/null @@ -1,77 +0,0 @@ - - - -
- - - -Return the all the elements in the sorted set at key with a score between_min_ and max (including elements with score equal to min or max).-
The elements having the same score are returned sorted lexicographically asASCII strings (this follows from a property of Redis sorted sets and does notinvolve further computation).-
Using the optional LIMIT it's possible to get only a range of the matchingelements in an SQL-alike way. Note that if offset is large the commandsneeds to traverse the list for offset elements and this adds up to theO(M) figure.-
The ZCOUNT command is similar to ZRANGEBYSCORE but instead of returningthe actual elements in the specified interval, it just returns the numberof matching elements.
-ZRANGEBYSCORE zset (1.3 5 --Will return all the values with score > 1.3 and <= 5, while for instance: -
-ZRANGEBYSCORE zset (5 (10 --Will return all the values with score > 5 and < 10 (5 and 10 excluded). -
-redis> zadd zset 1 foo -(integer) 1 -redis> zadd zset 2 bar -(integer) 1 -redis> zadd zset 3 biz -(integer) 1 -redis> zadd zset 4 foz -(integer) 1 -redis> zrangebyscore zset -inf +inf -1. "foo" -2. "bar" -3. "biz" -4. "foz" -redis> zcount zset 1 2 -(integer) 2 -redis> zrangebyscore zset 1 2 -1. "foo" -2. "bar" -redis> zrangebyscore zset (1 2 -1. "bar" -redis> zrangebyscore zset (1 (2 -(empty list or set) --