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,36 @@ 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
- ; 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
67
+ ; In older versions of php-memcached, this setting was Off and was called memcached.sess_binary.
68
+ ; Default is On with libmemcached 1.0.18 or newer.
69
+ ; Default is Off with older version.
70
+ ; memcached.sess_binary_protocol = On
71
71
72
72
; memcached session replica read randomize
73
- memcached.sess_randomize_replica_read = Off
73
+ ; memcached.sess_randomize_replica_read = Off
74
74
75
75
; memcached connect timeout value
76
76
; In non-blocking mode this changes the value of the timeout
77
77
; during socket connection in milliseconds. Specifying -1 means an infinite timeout.
78
- memcached.sess_connect_timeout = 1000
78
+ ; memcached.sess_connect_timeout = 1000
79
79
80
80
; Session SASL username
81
81
; Both username and password need to be set for SASL to be enabled
82
82
; In addition to this memcached.use_sasl needs to be on
83
- memcached.sess_sasl_username = NULL
83
+ ; memcached.sess_sasl_username = NULL
84
84
85
85
; Session SASL password
86
- memcached.sess_sasl_password = NULL
86
+ ; memcached.sess_sasl_password = NULL
87
87
88
88
; Set the compression type
89
89
; valid values are: fastlz, zlib
90
90
; the default is fastlz
91
- memcached.compression_type = " fastlz"
91
+ ; memcached.compression_type = "fastlz"
92
92
93
93
; Compression factor
94
94
; Store compressed value only if the compression
@@ -98,13 +98,13 @@ memcached.compression_type = "fastlz"
98
98
; plain_len > comp_len * factor
99
99
;
100
100
; the default value is 1.3 (23% space saving)
101
- memcached.compression_factor = " 1.3"
101
+ ; memcached.compression_factor = "1.3"
102
102
103
103
; The compression threshold
104
104
;
105
105
; Do not compress serialized values below this threshold.
106
106
; the default is 2000 bytes
107
- memcached.compression_threshold = 2000
107
+ ; memcached.compression_threshold = 2000
108
108
109
109
; Set the default serializer for new memcached objects.
110
110
; valid values are: php, igbinary, json, json_array, msgpack
@@ -119,14 +119,14 @@ memcached.compression_threshold = 2000
119
119
; msgpack - a cross-language binary serializer
120
120
;
121
121
; The default is igbinary if available, then msgpack if available, then php otherwise.
122
- memcached.serializer = " igbinary"
122
+ ; memcached.serializer = "igbinary"
123
123
124
124
; The amount of retries for failed store commands.
125
125
; This mechanism allows transparent fail-over to secondary servers when
126
126
; set/increment/decrement/setMulti operations fail on the desired server in a multi-server
127
127
; environment.
128
128
; the default is 2
129
- memcached.store_retry_count = 2
129
+ ; memcached.store_retry_count = 2
130
130
131
131
; Sets the default for consistent hashing for new connections.
132
132
; (To configure consistent hashing for session connections,
@@ -137,7 +137,7 @@ memcached.store_retry_count = 2
137
137
; When consistent hashing is used, one can add or remove cache
138
138
; node(s) without messing up too much with existing keys
139
139
; default is Off
140
- memcached.default_consistent_hash = Off
140
+ ; memcached.default_consistent_hash = Off
141
141
142
142
; Sets the default memcached protocol for new connections.
143
143
; (To configure the memcached protocol for connections used by sessions,
@@ -146,7 +146,7 @@ memcached.default_consistent_hash = Off
146
146
; If set to On, the memcached binary protocol is used by default.
147
147
; If set to Off, the memcached text protocol is used.
148
148
; Default is Off
149
- memcached.default_binary_protocol = Off
149
+ ; memcached.default_binary_protocol = Off
150
150
151
151
; Sets the default memcached connection timeout for new connections.
152
152
; (To configure the memcached connection timeout for sessions,
@@ -155,4 +155,4 @@ memcached.default_binary_protocol = Off
155
155
; during socket connection in milliseconds. Specifying -1 means an infinite timeout.
156
156
; Specifying 0 means using the memcached library's default connection timeout.
157
157
; Default is 0.
158
- memcached.default_connect_timeout = 0
158
+ ; memcached.default_connect_timeout = 0
0 commit comments