Created
June 18, 2015 14:24
-
-
Save Porta/71351f0343daf76e98e6 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
local function search(words) | |
local cached_key, cached = temp_dest_key(words) | |
if cached == false then | |
redis.call('BITOP', 'AND', cached_key, unpack( namespace_keys(words) ) ) | |
cached = redis.call('GET', cached_key) | |
end | |
return cached | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment