配置示例
指令
- [#memcached_pass memcached_pass]
- [#memcached_send_timeout memcached_send_timeout]
- [#memcached_read_timeout memcached_read_timeout]
- [#memcached_buffer_size memcached_buffer_size]
[#memcached_next_upstream memcached_next_upstream]
语法:*memcached_pass [ name:port ]*
默认值:*none*
作用域:*http, server, location*
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_connect_timeout
语法:*memcached_connect_timeout [ time ]*
作用域:*http, server, location*
The timeout for connecting to memcached, in milliseconds.
语法:*memcached_read_timeout [ time ]*
默认值:*60000*
作用域:*http, server, location*
The timeout for reading from memcached, in milliseconds.
memcached_send_timeout
语法:*memcached_send_timeout [ time ]*
默认值:*60000*
作用域:*http, server, location*
语法:*memcached_buffer_size [ size ]*
默认值: see getpagesize(2)
作用域:*http, server, location*
The recv/send buffer size, in bytes.
memcached_next_upstream
语法:*memcached_next_upstream [ error | timeout | invalid_response | not_found | off ]*
默认值:*error timeout*
作用域:*http, server, location*
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.