@@ -12,11 +12,17 @@ memcached.sess_locking = On
1212
1313; The minimum time, in milliseconds, to wait between session lock attempts.
1414; This value is double on each lock retry until memcached.sess_lock_wait_max
15- ; is reached
16- memcached.sess_lock_wait_min = 0;
15+ ; is reached, after which any further retries will take sess_lock_wait_max seconds.
16+ ; Default is 1000.
17+ memcached.sess_lock_wait_min = 1000;
1718
1819; The maximum time, in milliseconds, to wait between session lock attempts.
19- memcached.sess_lock_wait_max = 0;
20+ ; Default is 2000.
21+ memcached.sess_lock_wait_max = 2000;
22+
23+ ; The number of times to retry locking the session lock, not including the first attempt.
24+ ; Default is 5.
25+ memcached.sess_lock_retries = 5;
2026
2127; The time, in seconds, before a lock should release itself.
2228; Setting to 0 results in the default behaviour, which is to
@@ -29,16 +35,24 @@ memcached.sess_lock_expire = 0;
2935; the default value is "memc.sess.key."
3036memcached.sess_prefix = " memc.sess.key."
3137
38+ ; Whether or not to re-use the memcached connections corresponding to the value(s)
39+ ; of session.save_path after the execution of the script ends.
40+ ; Don't use this if certain settings (e.g. SASL settings, sess_binary_protocol) would
41+ ; be overridden between requests.
42+ ; Default is Off.
43+ memcached.sess_persistent = Off
44+
3245; memcached session consistent hash mode
3346; if set to On, consistent hashing (libketama) is used
3447; for session handling.
3548; When consistent hashing is used, one can add or remove cache
3649; node(s) without messing up too much with existing keys
37- ; default is Off
38- memcached.sess_consistent_hash = Off
50+ ; default is On
51+ memcached.sess_consistent_hash = On
3952
40- ; Allow failed memcached server to automatically be removed
41- memcached.sess_remove_failed = 1
53+ ; Allow failed memcached server to automatically be removed.
54+ ; Default is Off. (In previous versions, this setting was called memcached.sess_remove_failed)
55+ memcached.sess_remove_failed_servers = Off
4256
4357; Write data to a number of additional memcached servers
4458; This is "poor man's HA" as libmemcached calls it.
@@ -57,7 +71,7 @@ memcached.sess_binary = Off
5771memcached.sess_randomize_replica_read = Off
5872
5973; memcached connect timeout value
60- ; In non-blocking mode this changes the value of the timeout
74+ ; In non-blocking mode this changes the value of the timeout
6175; during socket connection in milliseconds. Specifying -1 means an infinite timeout.
6276memcached.sess_connect_timeout = 1000
6377
0 commit comments