HttpMemcachedModule
Contents |
Synopsis
You can use this module to perform simple caching.
server { location / { set $memcached_key $uri; memcached_pass name:11211; default_type text/html; error_page 404 @fallback; } location @fallback { proxy_pass backend; } }
Directives
memcached_pass
ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_memcached_module/memcached_pass.txt
The backend should set the data in memcached. The memcached key is "/uri?args".
Since 0.5.9 the memcached key is now in $memcached_key.
memcached_connect_timeout
ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_memcached_module/memcached_connect_timeout.txt
The timeout for connecting to memcached.
memcached_read_timeout
ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_memcached_module/memcached_read_timeout.txt
The timeout for reading from memcached.
memcached_send_timeout
ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_memcached_module/memcached_send_timeout.txt
The timeout for sending to memcached.
memcached_buffer_size
ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_memcached_module/memcached_buffer_size.txt
The recv/send buffer size, in bytes.
memcached_next_upstream
ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_memcached_module/memcached_next_upstream.txt
Which failure conditions should cause the request to be forwarded to another upstream server? Applies only when the value in memcached_pass is an upstream with two or more servers.
Variables
$memcached_key
The value of the memcached key.
References
[1] Speeding up your nginx server with memcached
See Also
- The 3rd-party memc module that supports almost the whole memcached TCP protocol.
- The 3rd-party Enhanced Memcached Module add some features : custom HTTP headers, hash keys, flush memcached and so on.










