Created
May 31, 2015 13:56
-
-
Save phith0n/3dd73573ef3b08561faf 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 result = "" | |
local ips = red:keys("*") | |
for k1,ip in pairs(ips) do | |
result = result .. ip .. ":\n" | |
local words = red:smembers(ip) | |
for k2,word in pairs(words) do | |
result = result .. "\tSearch: " .. word .. "\n" | |
end | |
end | |
ngx.header.content_type = 'text/plain'; | |
ngx.say(result) | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment