redis sort
能做类似
mysql
这样的排序吗?
SELECT id,weight,click FROM task ORDER BY weight DESC, click ASC
天蓬老师2017-04-21 11:19:15
Don’t waste your efforts, no, just sit back and wait. http://redis.io/commands/SORT
巴扎黑2017-04-21 11:19:15
It is not supported directly, but you can design it, such as dividing the score into weight + (max_click - click)
PHP中文网2017-04-21 11:19:15
@finallygo’s method is generally feasible, but if it’s too complicated, it may not be supported well.