22; Use session locking
33; valid values: On, Off
44; the default is On
5- memcached.sess_locking = On
6-
7- ; !! DEPRECATED AND REMOVED in 3.x !!
8- ; memcached.sess_lock_wait = 150000
9-
10- ; !! DEPRECATED AND REMOVED in 3.x !!
11- ; memcached.sess_lock_max_wait = 0;
5+ ; memcached.sess_locking = On
126
137; The minimum time, in milliseconds, to wait between session lock attempts.
148; This value is double on each lock retry until memcached.sess_lock_wait_max
159; is reached, after which any further retries will take sess_lock_wait_max seconds.
1610; Default is 1000.
17- memcached.sess_lock_wait_min = 1000;
11+ ; memcached.sess_lock_wait_min = 1000;
1812
1913; The maximum time, in milliseconds, to wait between session lock attempts.
2014; Default is 2000.
21- memcached.sess_lock_wait_max = 2000;
15+ ; memcached.sess_lock_wait_max = 2000;
2216
2317; The number of times to retry locking the session lock, not including the first attempt.
2418; Default is 5.
25- memcached.sess_lock_retries = 5;
19+ ; memcached.sess_lock_retries = 5;
2620
2721; The time, in seconds, before a lock should release itself.
2822; Setting to 0 results in the default behaviour, which is to
2923; use the memcached.sess_lock_max_wait setting. If that is
3024; also 0, max_execution_time will be used.
31- memcached.sess_lock_expire = 0;
25+ ; memcached.sess_lock_expire = 0;
3226
3327; memcached session key prefix
3428; valid values are strings less than 219 bytes long
3529; the default value is "memc.sess.key."
36- memcached.sess_prefix = " memc.sess.key."
30+ ; memcached.sess_prefix = "memc.sess.key."
3731
3832; Whether or not to re-use the memcached connections corresponding to the value(s)
3933; of session.save_path after the execution of the script ends.
4034; Don't use this if certain settings (e.g. SASL settings, sess_binary_protocol) would
4135; be overridden between requests.
4236; Default is Off.
43- memcached.sess_persistent = Off
37+ ; memcached.sess_persistent = Off
4438
4539; memcached session consistent hash mode
4640; if set to On, consistent hashing (libketama) is used
4741; for session handling.
4842; When consistent hashing is used, one can add or remove cache
4943; node(s) without messing up too much with existing keys
5044; default is On
51- memcached.sess_consistent_hash = On
45+ ; memcached.sess_consistent_hash = On
5246
5347; Allow failed memcached server to automatically be removed.
5448; Default is Off. (In previous versions, this setting was called memcached.sess_remove_failed)
55- memcached.sess_remove_failed_servers = Off
49+ ; memcached.sess_remove_failed_servers = Off
50+
51+ ; Set this value to enable the server be removed after
52+ ; configured number of continuous times connection failure.
53+ ; memcached.sess_server_failure_limit = 0
5654
5755; Write data to a number of additional memcached servers
5856; This is "poor man's HA" as libmemcached calls it.
@@ -61,34 +59,34 @@ memcached.sess_remove_failed_servers = Off
6159; from a replica. However, if the failed memcache server
6260; becomes available again it will read the session from there
6361; which could have old data or no data at all
64- memcached.sess_number_of_replicas = 0
62+ ; memcached.sess_number_of_replicas = 0
6563
6664; Use the memcached binary protocol for memcached sessions (Instead of the text protocol)
6765; libmemcached replicas work only if binary mode is enabled.
6866; However, certain proxies (such as twemproxy) will work only if the binary protocol is disabled.
6967; Default is On. In older versions of php-memcached, this setting was Off and was called memcached.sess_binary.
70- memcached.sess_binary_protocol = On
68+ ; memcached.sess_binary_protocol = On
7169
7270; memcached session replica read randomize
73- memcached.sess_randomize_replica_read = Off
71+ ; memcached.sess_randomize_replica_read = Off
7472
7573; memcached connect timeout value
7674; In non-blocking mode this changes the value of the timeout
7775; during socket connection in milliseconds. Specifying -1 means an infinite timeout.
78- memcached.sess_connect_timeout = 1000
76+ ; memcached.sess_connect_timeout = 1000
7977
8078; Session SASL username
8179; Both username and password need to be set for SASL to be enabled
8280; In addition to this memcached.use_sasl needs to be on
83- memcached.sess_sasl_username = NULL
81+ ; memcached.sess_sasl_username = NULL
8482
8583; Session SASL password
86- memcached.sess_sasl_password = NULL
84+ ; memcached.sess_sasl_password = NULL
8785
8886; Set the compression type
8987; valid values are: fastlz, zlib
9088; the default is fastlz
91- memcached.compression_type = " fastlz"
89+ ; memcached.compression_type = "fastlz"
9290
9391; Compression factor
9492; Store compressed value only if the compression
@@ -98,13 +96,13 @@ memcached.compression_type = "fastlz"
9896; plain_len > comp_len * factor
9997;
10098; the default value is 1.3 (23% space saving)
101- memcached.compression_factor = " 1.3"
99+ ; memcached.compression_factor = "1.3"
102100
103101; The compression threshold
104102;
105103; Do not compress serialized values below this threshold.
106104; the default is 2000 bytes
107- memcached.compression_threshold = 2000
105+ ; memcached.compression_threshold = 2000
108106
109107; Set the default serializer for new memcached objects.
110108; valid values are: php, igbinary, json, json_array, msgpack
@@ -119,14 +117,14 @@ memcached.compression_threshold = 2000
119117; msgpack - a cross-language binary serializer
120118;
121119; The default is igbinary if available, then msgpack if available, then php otherwise.
122- memcached.serializer = " igbinary"
120+ ; memcached.serializer = "igbinary"
123121
124122; The amount of retries for failed store commands.
125123; This mechanism allows transparent fail-over to secondary servers when
126124; set/increment/decrement/setMulti operations fail on the desired server in a multi-server
127125; environment.
128126; the default is 2
129- memcached.store_retry_count = 2
127+ ; memcached.store_retry_count = 2
130128
131129; Sets the default for consistent hashing for new connections.
132130; (To configure consistent hashing for session connections,
@@ -137,7 +135,7 @@ memcached.store_retry_count = 2
137135; When consistent hashing is used, one can add or remove cache
138136; node(s) without messing up too much with existing keys
139137; default is Off
140- memcached.default_consistent_hash = Off
138+ ; memcached.default_consistent_hash = Off
141139
142140; Sets the default memcached protocol for new connections.
143141; (To configure the memcached protocol for connections used by sessions,
@@ -146,7 +144,7 @@ memcached.default_consistent_hash = Off
146144; If set to On, the memcached binary protocol is used by default.
147145; If set to Off, the memcached text protocol is used.
148146; Default is Off
149- memcached.default_binary_protocol = Off
147+ ; memcached.default_binary_protocol = Off
150148
151149; Sets the default memcached connection timeout for new connections.
152150; (To configure the memcached connection timeout for sessions,
@@ -155,4 +153,4 @@ memcached.default_binary_protocol = Off
155153; during socket connection in milliseconds. Specifying -1 means an infinite timeout.
156154; Specifying 0 means using the memcached library's default connection timeout.
157155; Default is 0.
158- memcached.default_connect_timeout = 0
156+ ; memcached.default_connect_timeout = 0
0 commit comments