Welcome! Log In Create A New Profile

Advanced

Re: Access to memcache variable in module

Maxim Dounin
March 20, 2012 08:40AM
Hello!

On Tue, Mar 20, 2012 at 11:34:57AM +0000, Adelino Monteiro wrote:

> Hello,
>
> This maybe a stupidly simple question but I haven't found an answer yet.
> I have a working nginx module where I process one of the http variabels
> using ngx_http_arg function ngxinx provides.
> What I'm doing know is to have this same http variable being searching in
> memcache and if found I want to pass that value to my module.
>
> What would be the correct way to achieve this?

The ngx_http_subrequest() function with
NGX_HTTP_SUBREQUEST_IN_MEMORY flag should do the trick. Take a
look at ngx_http_ssi_filter_module.c for an example.

Maxim Dounin

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Access to memcache variable in module

ainou 1663 March 20, 2012 07:36AM

Re: Access to memcache variable in module

Maxim Dounin 758 March 20, 2012 08:40AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 205
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready