For a Redis list (or set / zset / hset)
['5', '5', '5', '5', '4', '3', '3', '3', '2', '2', '2', '2', '1', '1', '1']
What is the best way to install it since sql did
select count(key), sum(key) from table group by key;
Wishing a customer a loop is not the only way .......
source share