<slide>
<title>Redis: Sorted Set</title>

<list>
	<bullet>A combination between a set and a hash</bullet>
	<bullet>Every element in a sorted set is associated with a floating point value, called the score</bullet>
</list>

<example inline="2">
127.0.0.1:6379> *ZADD* whisky:rating *4 pulteney-11* 2.0 glenfarclas-12 4.0 fettercairn-23
(integer) 3
</example>

<example inline="2">
127.0.0.1:6379> *ZRANGE* whisky:rating *0 -1 WITHSCORES*
1) "glenfarclas-12"
2) "2"
3) "fettercairn-23"
4) "4"
5) "pulteney-11"
6) "4"
</example>

<example inline="2">
127.0.0.1:6379> *ZRANGEBYSCORE* whisky:rating *3 5*
1) "fettercairn-23"
2) "pulteney-11"
</example>

</slide>
