Created
March 15, 2009 23:01
-
-
Save ezmobius/79573 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
redis.sort 'index', :by => 'weight_*', | |
:order => 'DESC ALPHA', | |
:limit => [0,10], | |
:get => 'obj_*' | |
VS | |
redis.sort "SORT index BY weight_* GET obj_* DESC ALPHA LIMIT 0 10" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment