redis sorted set highest score
<p>Is any simple method to get the highest score from Redis sorted set? I found this way, may be there is better ways to make this(in ruby):</p>

<pre><code>all_scores = Redis.zrange('foo', 0, -1, with_scores: true) # =&gt; [["item 1", 2.5], ["item 2", 3.4]]
all_scores.flatten.last # =&gt; 3.4
</code></pre>

<p>It seems not the best way.</p>