2
2
; Use session locking
3
3
; valid values: On, Off
4
4
; 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
12
6
13
7
; The minimum time, in milliseconds, to wait between session lock attempts.
14
8
; This value is double on each lock retry until memcached.sess_lock_wait_max
15
9
; is reached, after which any further retries will take sess_lock_wait_max seconds.
16
10
; Default is 1000.
17
- memcached.sess_lock_wait_min = 1000;
11
+ ; memcached.sess_lock_wait_min = 1000;
18
12
19
13
; The maximum time, in milliseconds, to wait between session lock attempts.
20
14
; Default is 2000.
21
- memcached.sess_lock_wait_max = 2000;
15
+ ; memcached.sess_lock_wait_max = 2000;
22
16
23
17
; The number of times to retry locking the session lock, not including the first attempt.
24
18
; Default is 5.
25
- memcached.sess_lock_retries = 5;
19
+ ; memcached.sess_lock_retries = 5;
26
20
27
21
; The time, in seconds, before a lock should release itself.
28
22
; Setting to 0 results in the default behaviour, which is to
29
23
; use the memcached.sess_lock_max_wait setting. If that is
30
24
; also 0, max_execution_time will be used.
31
- memcached.sess_lock_expire = 0;
25
+ ; memcached.sess_lock_expire = 0;
32
26
33
27
; memcached session key prefix
34
28
; valid values are strings less than 219 bytes long
35
29
; the default value is "memc.sess.key."
36
- memcached.sess_prefix = " memc.sess.key."
30
+ ; memcached.sess_prefix = "memc.sess.key."
37
31
38
32
; Whether or not to re-use the memcached connections corresponding to the value(s)
39
33
; of session.save_path after the execution of the script ends.
40
34
; Don't use this if certain settings (e.g. SASL settings, sess_binary_protocol) would
41
35
; be overridden between requests.
42
36
; Default is Off.
43
- memcached.sess_persistent = Off
37
+ ; memcached.sess_persistent = Off
44
38
45
39
; memcached session consistent hash mode
46
40
; if set to On, consistent hashing (libketama) is used
47
41
; for session handling.
48
42
; When consistent hashing is used, one can add or remove cache
49
43
; node(s) without messing up too much with existing keys
50
44
; default is On
51
- memcached.sess_consistent_hash = On
45
+ ; memcached.sess_consistent_hash = On
52
46
53
47
; Allow failed memcached server to automatically be removed.
54
48
; 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
56
54
57
55
; Write data to a number of additional memcached servers
58
56
; This is "poor man's HA" as libmemcached calls it.
@@ -61,34 +59,34 @@ memcached.sess_remove_failed_servers = Off
61
59
; from a replica. However, if the failed memcache server
62
60
; becomes available again it will read the session from there
63
61
; which could have old data or no data at all
64
- memcached.sess_number_of_replicas = 0
62
+ ; memcached.sess_number_of_replicas = 0
65
63
66
64
; Use the memcached binary protocol for memcached sessions (Instead of the text protocol)
67
65
; libmemcached replicas work only if binary mode is enabled.
68
66
; However, certain proxies (such as twemproxy) will work only if the binary protocol is disabled.
69
67
; 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
71
69
72
70
; memcached session replica read randomize
73
- memcached.sess_randomize_replica_read = Off
71
+ ; memcached.sess_randomize_replica_read = Off
74
72
75
73
; memcached connect timeout value
76
74
; In non-blocking mode this changes the value of the timeout
77
75
; during socket connection in milliseconds. Specifying -1 means an infinite timeout.
78
- memcached.sess_connect_timeout = 1000
76
+ ; memcached.sess_connect_timeout = 1000
79
77
80
78
; Session SASL username
81
79
; Both username and password need to be set for SASL to be enabled
82
80
; In addition to this memcached.use_sasl needs to be on
83
- memcached.sess_sasl_username = NULL
81
+ ; memcached.sess_sasl_username = NULL
84
82
85
83
; Session SASL password
86
- memcached.sess_sasl_password = NULL
84
+ ; memcached.sess_sasl_password = NULL
87
85
88
86
; Set the compression type
89
87
; valid values are: fastlz, zlib
90
88
; the default is fastlz
91
- memcached.compression_type = " fastlz"
89
+ ; memcached.compression_type = "fastlz"
92
90
93
91
; Compression factor
94
92
; Store compressed value only if the compression
@@ -98,13 +96,13 @@ memcached.compression_type = "fastlz"
98
96
; plain_len > comp_len * factor
99
97
;
100
98
; the default value is 1.3 (23% space saving)
101
- memcached.compression_factor = " 1.3"
99
+ ; memcached.compression_factor = "1.3"
102
100
103
101
; The compression threshold
104
102
;
105
103
; Do not compress serialized values below this threshold.
106
104
; the default is 2000 bytes
107
- memcached.compression_threshold = 2000
105
+ ; memcached.compression_threshold = 2000
108
106
109
107
; Set the default serializer for new memcached objects.
110
108
; valid values are: php, igbinary, json, json_array, msgpack
@@ -119,14 +117,14 @@ memcached.compression_threshold = 2000
119
117
; msgpack - a cross-language binary serializer
120
118
;
121
119
; The default is igbinary if available, then msgpack if available, then php otherwise.
122
- memcached.serializer = " igbinary"
120
+ ; memcached.serializer = "igbinary"
123
121
124
122
; The amount of retries for failed store commands.
125
123
; This mechanism allows transparent fail-over to secondary servers when
126
124
; set/increment/decrement/setMulti operations fail on the desired server in a multi-server
127
125
; environment.
128
126
; the default is 2
129
- memcached.store_retry_count = 2
127
+ ; memcached.store_retry_count = 2
130
128
131
129
; Sets the default for consistent hashing for new connections.
132
130
; (To configure consistent hashing for session connections,
@@ -137,7 +135,7 @@ memcached.store_retry_count = 2
137
135
; When consistent hashing is used, one can add or remove cache
138
136
; node(s) without messing up too much with existing keys
139
137
; default is Off
140
- memcached.default_consistent_hash = Off
138
+ ; memcached.default_consistent_hash = Off
141
139
142
140
; Sets the default memcached protocol for new connections.
143
141
; (To configure the memcached protocol for connections used by sessions,
@@ -146,7 +144,7 @@ memcached.default_consistent_hash = Off
146
144
; If set to On, the memcached binary protocol is used by default.
147
145
; If set to Off, the memcached text protocol is used.
148
146
; Default is Off
149
- memcached.default_binary_protocol = Off
147
+ ; memcached.default_binary_protocol = Off
150
148
151
149
; Sets the default memcached connection timeout for new connections.
152
150
; (To configure the memcached connection timeout for sessions,
@@ -155,4 +153,4 @@ memcached.default_binary_protocol = Off
155
153
; during socket connection in milliseconds. Specifying -1 means an infinite timeout.
156
154
; Specifying 0 means using the memcached library's default connection timeout.
157
155
; Default is 0.
158
- memcached.default_connect_timeout = 0
156
+ ; memcached.default_connect_timeout = 0
0 commit comments