Hello!
On Wed, Oct 31, 2012 at 12:06 PM, Maxime Corbeau wrote:
>
> AFAIK your nginx-eval-module module doesn't allow assigning Redis values to
> Nginx variable like one can do using the memcached_pass directive. Am I
> mistaken? Do you know a way to do so?
>
You're highly recommended to use the ngx_lua module's rewrite_by_lua
or access_by_lua directives to do this. Here is an example:
http://openresty.org/#DynamicRoutingBasedOnRedis
But nowadays, it's also recommended to use the lua-resty-redis library
than ngx_redis2/ngx_redis in Lua:
https://github.com/agentzh/lua-resty-redis
because lua-resty-redis is usually more efficient, more feature
complete, and also more flexible.
BTW, I'm cc'ing the openresty-en mailing list:
https://groups.google.com/group/openresty-en
Best regards,
-agentzh