February 2018
Intermediate to advanced
382 pages
11h 33m
English
To understand how to use the sorted set data type, take the following steps:
127.0.0.1:6379> ZADD ranking:restaurants 100 "Olive Garden" 23 "PF Chang's" 34 "Outback Steakhouse" 45 "Red Lobster" 88 "Longhorn Steakhouse" (integer) 5
127.0.0.1:6379> ZREVRANGE ranking:restaurants 0 -1 WITHSCORES 1) "Olive Garden" 2) "100" 3) "Longhorn Steakhouse" 4) "88" 5) "Red Lobster" 6) "45" 7) "Outback ...
Read now
Unlock full access