Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove "/redis_read" location #14

Open
lloydzhou opened this issue Jul 6, 2015 · 0 comments
Open

remove "/redis_read" location #14

lloydzhou opened this issue Jul 6, 2015 · 0 comments

Comments

@lloydzhou
Copy link

can remove "redis_read" just using "redis_write" instead.

-- read the response in redis
ngx.log(ngx.NOTICE, "[LUA] Is the response in the redis cache ?")
local redis_read_response = ngx.location.capture("/redis_write?n=1", {method=ngx.HTTP_POST, body = parser.build_query({"HGETALL", ngx.var.key})})
local res, typ = parser.parse_reply(redis_read_response.body)
-- the result must be an array (MULTI_BULK_REPLY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant