memc_pass
Sends a request to memcached, full read/write ASCII protocol.
| Syntax | memc_pass host:port; | memc_pass unix:path; | memc_pass upstream_name; |
|---|---|
| Contexts | location |
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;
}