title: Java Redis (jedis) transaction and Sorted Set
body: <p>I am new to Redis and I am experimenting with Redis transactions and I want to use Redis transactions in the following scenario. Need to know if it is feasible to do this:</p>
  
  <ol>
  <li>Start Transaction.</li>
  <li>Read top 10 elements from sorted set.</li>
  <li>A 'for loop' for each of the elements to do something.</li>
  <li>Execute.</li>
  </ol>
  
  <p>I tried the following code but it isn't working as I am doing a <code>&lt;Response&gt;.get()</code> before executing the transaction. </p>
  
  <pre><code>final Transaction tx = jedis.multi();
  final Response&lt;Set&lt;Tuple&gt;&gt; tuples = tx.zrangeByScoreWithScores("randomKey", 0d, 100, 0, 10);
  for (final Tuple tuple : tuples.get()) {
      jedis.incr(tuple);
  }
  tx.exec(); //In a hope that get and sets happen in a single transaction.
  </code></pre>
  
  <p>Is there a way to go around this?</p>