<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 06/04/2011 08:19 AM, logar.damir wrote:
<blockquote
cite="mid:fc6c8a4071570920e4b4a059f7fa2478.NginxMailingListEnglish@forum.nginx.org"
type="cite">
<pre wrap="">I'm new to redis/nginx combinations, however I think you should also add
following modules:
-https://github.com/agentzh/lua-redis-parser
-https://github.com/chaoslawful/lua-nginx-module.
Then you can use
content_by_lua '
local replies = ngx.location.capture("/redis2")
local parser = require('redis.parser')
-- assuming the replies variable holds n redis responses
-- to be parsed:
local results = parser.parse_replies(replies, n)
for i, result in ipairs(results) do
local res = result[1]
local typ = result[2]
-- res and typ have exactly the same meaning as in
-- the parse_reply method documented above
end
'
Posted at Nginx Forum: <a class="moz-txt-link-freetext" href="http://forum.nginx.org/read.php?2,203154,203862#msg-203862">http://forum.nginx.org/read.php?2,203154,203862#msg-203862</a>
_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://nginx.org/mailman/listinfo/nginx">http://nginx.org/mailman/listinfo/nginx</a>
</pre>
</blockquote>
<font face="Ubuntu">Here on the blog of Mike Ferrier, you can find a
excellent user-case for the combination of Redis, Lua, Nginx and
Rails</font><br>
<font face="Ubuntu"><a class="moz-txt-link-freetext" href="http://mikeferrier.ca/2011/05/14/my-beautiful-dark-twisted-reverse-proxy-lru-cache/">http://mikeferrier.ca/2011/05/14/my-beautiful-dark-twisted-reverse-proxy-lru-cache/</a></font><br>
<br>
<pre class="moz-signature" cols="72">--
Marcos Luis Ortiz Valmaseda
Software Engineer (Distributed Systems)
<a class="moz-txt-link-freetext" href="http://uncubanitolinuxero.blogspot.com">http://uncubanitolinuxero.blogspot.com</a>
</pre>
</body>
</html>