Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
查看记录下来的谷歌搜索关键词
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
You can’t perform that action at this time.