<i>Time complexity: O(log(N))+O(M) with N being the number of elements in the sorted set and M the number of elements returned by the command, so if M is constant (for instance you always ask for the first ten elements with LIMIT) you can consider it O(log(N))</i><blockquote>Return the all the elements in the sorted set at key with a score between_min_ and <i>max</i> (including elements with score equal to min or max).</blockquote>
<blockquote>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).</blockquote>
<blockquote>Using the optional LIMIT it's possible to get only a range of the matchingelements in an SQL-alike way. Note that if <i>offset</i> is large the commandsneeds to traverse the list for <i>offset</i> elements and this adds up to theO(M) figure.</blockquote>
<h2><aname="Return value">Return value</a></h2><ahref="ReplyTypes.html">Multi bulk reply</a>, specifically a list of elements in the specified score range.
<!-- This is a (PRE) block. Make sure it's left aligned or your toc title will be off. -->
<b>index: Contents</b><br> <ahref="#Redis Documentation">Redis Documentation</a><br> <ahref="#HOWTOs about selected features">HOWTOs about selected features</a><br> <ahref="#Hacking">Hacking</a><br> <ahref="#Videos">Videos</a>
<b>index: Contents</b><br> <ahref="#HOWTOs about selected features">HOWTOs about selected features</a><br> <ahref="#Hacking">Hacking</a><br> <ahref="#Videos">Videos</a>
</div>
<h1class="wikiname">index</h1>
...
...
@@ -26,10 +26,11 @@
</div>
<divclass="narrow">
<h1><aname="Redis Documentation">Redis Documentation</a></h1>Hello! The followings are pointers to different parts of the Redis Documentation.<br/><br/><ul><li><ahref="README.html">The README</a> is the best starting point to know more about the project.</li><li><ahref="QuickStart.html">This short Quick Start</a> provides a five minutes step-by-step istructions on how to download, compile, run and test the basic workings of a Redis server.</li><li><ahref="CommandReference.html">The command reference</a> is a description of all the Redis commands with links to command specific pages.</li><li><ahref="TwitterAlikeExample.html">This is a tuturial about creating a Twitter clone using *only* Redis as database, no relational DB at all is used</a>, it is a good start to understand the key-value database paradigm.</li><li><ahref="IntroductionToRedisDataTypes.html">A Fifteen Minutes Introduction to the Redis Data Types</a> explains how Redis data types work and the basic patterns of working with Redis.</li><li><ahref="Features.html">The features page</a> (currently in draft) is a good start to understand the strength and limitations of Redis.</li><li><ahref="Benchmarks.html">The benchmark page</a> is about the speed performances of Redis.</li><li><ahref="FAQ.html">Our FAQ</a> contains of course some answers to common questions about Redis.</li><li><b><ahref="SponsorshipHowto.html">How to donate</a></b> to the project sponsoring features.</li></ul>
<h1><aname="HOWTOs about selected features">HOWTOs about selected features</a></h1><ul><li><ahref="ReplicationHowto.html">The Redis Replication HOWTO</a> is what you need to read in order to understand how Redis master <codename="code"class="python"><-></code> slave replication works.</li><li><ahref="AppendOnlyFileHowto.html">The Append Only File HOWTO</a> explains how the alternative Redis durability mode works. AOF is an alternative to snapshotting on disk from time to time (the default).</li></ul>
= Redis Documentation =<br/><br/><ahref="http://pyha.ru/wiki/index.php?title=Redis:index"target="_blank">Russian Translation</a>Hello! The followings are pointers to different parts of the Redis Documentation.<br/><br/><ul><li>New! You can now <ahref="http://try.redis-db.com"target="_blank">Try Redis directly in your browser!</a>.</li><li><ahref="README.html">The README</a> is the best starting point to know more about the project.</li><li><ahref="QuickStart.html">This short Quick Start</a> provides a five minutes step-by-step istructions on how to download, compile, run and test the basic workings of a Redis server.</li><li><ahref="CommandReference.html">The command reference</a> is a description of all the Redis commands with links to command specific pages. You can also download the <ahref="http://go2.wordpress.com/?id=725X1342&site=masonoise.wordpress.com&url=http%3A%2F%2Fmasonoise.files.wordpress.com%2F2010%2F03%2Fredis-cheatsheet-v1.pdf"target="_blank">Redis Commands Cheat-Sheet</a> provided by Mason Jones (btw some command may be missing, the primary source is the wiki).</li><li><ahref="TwitterAlikeExample.html">This is a tuturial about creating a Twitter clone using *only* Redis as database, no relational DB at all is used</a>, it is a good start to understand the key-value database paradigm.</li><li><ahref="IntroductionToRedisDataTypes.html">A Fifteen Minutes Introduction to the Redis Data Types</a> explains how Redis data types work and the basic patterns of working with Redis.</li><li><ahref="http://simonwillison.net/static/2010/redis-tutorial/"target="_blank">the Simon Willison Redis Tutorial</a> is a <b>must read</b>, very good documentation where you will find a lot of real world ideas and use cases.</li><li><ahref="Features.html">The features page</a> (currently in draft) is a good start to understand the strength and limitations of Redis.</li><li><ahref="Benchmarks.html">The benchmark page</a> is about the speed performances of Redis.</li><li><ahref="FAQ.html">Our FAQ</a> contains of course some answers to common questions about Redis.</li><li><ahref="http://www.rediscookbook.org/"target="_blank">The Redis Cookbook</a> is a collaborative effort to provide some good recipe ;)</li></ul>
<h1><aname="HOWTOs about selected features">HOWTOs about selected features</a></h1><ul><li><ahref="ReplicationHowto.html">The Redis Replication HOWTO</a> is what you need to read in order to understand how Redis master <codename="code"class="python"><-></code> slave replication works.</li><li><ahref="AppendOnlyFileHowto.html">The Append Only File HOWTO</a> explains how the alternative Redis durability mode works. AOF is an alternative to snapshotting on disk from time to time (the default).</li><li><ahref="VirtualMemoryUserGuide.html">Virutal Memory User Guide</a>. A simple to understand guide about using and configuring the Redis Virtual Memory.</li></ul>
<h1><aname="Hacking">Hacking</a></h1>
<ul><li><ahref="ProtocolSpecification.html">The Protocol Specification</a> is all you need in order to implement a Redis client library for a missing language. PHP, Python, Ruby and Erlang are already supported.</li></ul>
<ul><li> Look at <ahref="RedisInternals.html">Redis Internals</a> if you are interested in the implementation details of the Redis server.</li></ul>
<h1><aname="Videos">Videos</a></h1><ul><li><ahref="http://mwrc2009.confreaks.com/13-mar-2009-19-24-redis-key-value-nirvana-ezra-zygmuntowicz.html"target="_blank">watch the Ezra Zygmuntowicz talk about Redis</a> to know the most important Redis ideas in few minutes.</li></ul>