redis2-nginx-module is written with all location configs.
Does it mean that the module can only be called from browser with some
url?
If I want to introduce new module into reuest processing path & call
redis2-nginx-module to fetch data from redis how I can do it?
Posted at Nginx Forum:
If you need to call redis from your code, you can take a look on
redis_nginx_adapter https://github.com/wandenberg/redis_nginx_adapter.
But, if you want to get the value from your “config” and use it there,
probably you have to use some other language like perl or lua,
I’m not 100% sure
By default redis2-nginx-module execute some commands on redis and return
the redis response to the client directly.
So you receive something like
+OK
$5
world
If you want to manipulate this response on you nginx.conf (“config”) you
have to do more work, probably using another language like lua.
If you are ok with your client receiving this kind of answer you do not
have to worry.
Thanks @wandenberg.
Can you clarify more on, what do you mean by getting the value from
“config”
:
But, if you want to get the value from your “config” and use it there,
Posted at Nginx Forum:
Hello!
On Tue, Aug 12, 2014 at 5:16 AM, ajaybodhe wrote:
redis2-nginx-module is written with all location configs.
Does it mean that the module can only be called from browser with some url?
If I want to introduce new module into reuest processing path & call
redis2-nginx-module to fetch data from redis how I can do it?
See my reply on the openresty-en mailing list here:
https://groups.google.com/d/msg/openresty-en/P-A7mzgX4SU/ieuZa3GgRx4J
BTW, please do not cross-post your questions between openresty-en and
nginx mailing lists because most of the people on the former should be
on the latter as well. Thank you for your cooperation.
Best regards,
-agentzh