Created
May 23, 2014 15:41
-
-
Save itamarhaber/365c8c61fc9bfb3f6824 to your computer and use it in GitHub Desktop.
Redis suffix index function in Lua. Call with key name of the search terms set and argument to index
This file contains 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.call("zadd", KEYS[1], 1, ARGV[1]:reverse()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment