What is the Redis equivalent of TransactionDB's getRange?
<p>The transactionDB python api says that,</p>

<blockquote>
  <p>Database.get_range(begin, end[, limit, reverse, streaming_mode])</p>
  
  <p>Returns all keys k such that begin &lt;= k &lt; end and their associated values as a 
  list of KeyValue objects. Note the exclusion of end from the range.</p>
  
  <p>This read is fully synchronous.</p>
</blockquote>

<p>I want something equivalent in Redis. I looked at lrange and zrange functions but don't think that they are similar.</p>

<p><a href="http://redis.io/topics/data-types#sorted-sets" rel="nofollow">Sorted sets</a> allow you to query by a <a href="http://redis.io/commands/zrange" rel="nofollow">range</a>. If you're storing say an object, you can use the sorted set to get the desired object ID's, then lookup the object information from a hash with <a href="http://redis.io/commands/hget" rel="nofollow">hget</a>/<a href="http://redis.io/commands/hgetall" rel="nofollow">hgetall</a>.</p>

python redis jedis foundationdb