xin

memc_pass

Sends a request to memcached, full read/write ASCII protocol.

Syntaxmemc_pass host:port; | memc_pass unix:path; | memc_pass upstream_name;
Contextslocation

Behavior

Command comes from $memc_cmd (default per HTTP method), key from $memc_key. A location cannot combine memc_pass with proxy_pass.

Availability. Distinct from the read-only, core-module memcached_pass.

Example

location /cache/ {
    set $memc_key $uri;
    memc_pass 127.0.0.1:11211;
}

Related directives

memc_cmds_allowed · memcached_pass