Skip to content

Commit fec1759

Browse files
committed
Merge pull request #236 from TysonAndre/update-misc-memcached.ini-docs
Document miscellaneous ini settings and new defaults for PHP7 release
2 parents 52c644b + e755d9d commit fec1759

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

memcached.ini

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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."
3036
memcached.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
5771
memcached.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.
6276
memcached.sess_connect_timeout = 1000
6377

0 commit comments

Comments
 (0)