@@ -8,1293 +8,1293 @@ |
||
8 | 8 | */ |
9 | 9 | class Memcached { |
10 | 10 | |
11 | - /** |
|
12 | - * <p>Enables or disables payload compression. When enabled, |
|
13 | - * item values longer than a certain threshold (currently 100 bytes) will be |
|
14 | - * compressed during storage and decompressed during retrieval |
|
15 | - * transparently.</p> |
|
16 | - * <p>Type: boolean, default: <b>TRUE</b>.</p> |
|
17 | - * @link https://php.net/manual/en/memcached.constants.php |
|
18 | - */ |
|
19 | - const OPT_COMPRESSION = -1001; |
|
20 | - const OPT_COMPRESSION_TYPE = -1004; |
|
21 | - |
|
22 | - /** |
|
23 | - * <p>This can be used to create a "domain" for your item keys. The value |
|
24 | - * specified here will be prefixed to each of the keys. It cannot be |
|
25 | - * longer than 128 characters and will reduce the |
|
26 | - * maximum available key size. The prefix is applied only to the item keys, |
|
27 | - * not to the server keys.</p> |
|
28 | - * <p>Type: string, default: "".</p> |
|
29 | - * @link https://php.net/manual/en/memcached.constants.php |
|
30 | - */ |
|
31 | - const OPT_PREFIX_KEY = -1002; |
|
32 | - |
|
33 | - /** |
|
34 | - * <p> |
|
35 | - * Specifies the serializer to use for serializing non-scalar values. |
|
36 | - * The valid serializers are <b>Memcached::SERIALIZER_PHP</b> |
|
37 | - * or <b>Memcached::SERIALIZER_IGBINARY</b>. The latter is |
|
38 | - * supported only when memcached is configured with |
|
39 | - * --enable-memcached-igbinary option and the |
|
40 | - * igbinary extension is loaded. |
|
41 | - * </p> |
|
42 | - * <p>Type: integer, default: <b>Memcached::SERIALIZER_PHP</b>.</p> |
|
43 | - * @link https://php.net/manual/en/memcached.constants.php |
|
44 | - */ |
|
45 | - const OPT_SERIALIZER = -1003; |
|
46 | - |
|
47 | - /** |
|
48 | - * <p>Indicates whether igbinary serializer support is available.</p> |
|
49 | - * <p>Type: boolean.</p> |
|
50 | - * @link https://php.net/manual/en/memcached.constants.php |
|
51 | - */ |
|
52 | - const HAVE_IGBINARY = 0; |
|
53 | - |
|
54 | - /** |
|
55 | - * <p>Indicates whether JSON serializer support is available.</p> |
|
56 | - * <p>Type: boolean.</p> |
|
57 | - * @link https://php.net/manual/en/memcached.constants.php |
|
58 | - */ |
|
59 | - const HAVE_JSON = 0; |
|
60 | - const HAVE_SESSION = 1; |
|
61 | - const HAVE_SASL = 0; |
|
62 | - |
|
63 | - /** |
|
64 | - * <p>Specifies the hashing algorithm used for the item keys. The valid |
|
65 | - * values are supplied via <b>Memcached::HASH_*</b> constants. |
|
66 | - * Each hash algorithm has its advantages and its disadvantages. Go with the |
|
67 | - * default if you don't know or don't care.</p> |
|
68 | - * <p>Type: integer, default: <b>Memcached::HASH_DEFAULT</b></p> |
|
69 | - * @link https://php.net/manual/en/memcached.constants.php |
|
70 | - */ |
|
71 | - const OPT_HASH = 2; |
|
72 | - |
|
73 | - /** |
|
74 | - * <p>The default (Jenkins one-at-a-time) item key hashing algorithm.</p> |
|
75 | - * @link https://php.net/manual/en/memcached.constants.php |
|
76 | - */ |
|
77 | - const HASH_DEFAULT = 0; |
|
78 | - |
|
79 | - /** |
|
80 | - * <p>MD5 item key hashing algorithm.</p> |
|
81 | - * @link https://php.net/manual/en/memcached.constants.php |
|
82 | - */ |
|
83 | - const HASH_MD5 = 1; |
|
84 | - |
|
85 | - /** |
|
86 | - * <p>CRC item key hashing algorithm.</p> |
|
87 | - * @link https://php.net/manual/en/memcached.constants.php |
|
88 | - */ |
|
89 | - const HASH_CRC = 2; |
|
90 | - |
|
91 | - /** |
|
92 | - * <p>FNV1_64 item key hashing algorithm.</p> |
|
93 | - * @link https://php.net/manual/en/memcached.constants.php |
|
94 | - */ |
|
95 | - const HASH_FNV1_64 = 3; |
|
96 | - |
|
97 | - /** |
|
98 | - * <p>FNV1_64A item key hashing algorithm.</p> |
|
99 | - * @link https://php.net/manual/en/memcached.constants.php |
|
100 | - */ |
|
101 | - const HASH_FNV1A_64 = 4; |
|
102 | - |
|
103 | - /** |
|
104 | - * <p>FNV1_32 item key hashing algorithm.</p> |
|
105 | - * @link https://php.net/manual/en/memcached.constants.php |
|
106 | - */ |
|
107 | - const HASH_FNV1_32 = 5; |
|
108 | - |
|
109 | - /** |
|
110 | - * <p>FNV1_32A item key hashing algorithm.</p> |
|
111 | - * @link https://php.net/manual/en/memcached.constants.php |
|
112 | - */ |
|
113 | - const HASH_FNV1A_32 = 6; |
|
114 | - |
|
115 | - /** |
|
116 | - * <p>Hsieh item key hashing algorithm.</p> |
|
117 | - * @link https://php.net/manual/en/memcached.constants.php |
|
118 | - */ |
|
119 | - const HASH_HSIEH = 7; |
|
120 | - |
|
121 | - /** |
|
122 | - * <p>Murmur item key hashing algorithm.</p> |
|
123 | - * @link https://php.net/manual/en/memcached.constants.php |
|
124 | - */ |
|
125 | - const HASH_MURMUR = 8; |
|
126 | - |
|
127 | - /** |
|
128 | - * <p>Specifies the method of distributing item keys to the servers. |
|
129 | - * Currently supported methods are modulo and consistent hashing. Consistent |
|
130 | - * hashing delivers better distribution and allows servers to be added to |
|
131 | - * the cluster with minimal cache losses.</p> |
|
132 | - * <p>Type: integer, default: <b>Memcached::DISTRIBUTION_MODULA.</b></p> |
|
133 | - * @link https://php.net/manual/en/memcached.constants.php |
|
134 | - */ |
|
135 | - const OPT_DISTRIBUTION = 9; |
|
136 | - |
|
137 | - /** |
|
138 | - * <p>Modulo-based key distribution algorithm.</p> |
|
139 | - * @link https://php.net/manual/en/memcached.constants.php |
|
140 | - */ |
|
141 | - const DISTRIBUTION_MODULA = 0; |
|
142 | - |
|
143 | - /** |
|
144 | - * <p>Consistent hashing key distribution algorithm (based on libketama).</p> |
|
145 | - * @link https://php.net/manual/en/memcached.constants.php |
|
146 | - */ |
|
147 | - const DISTRIBUTION_CONSISTENT = 1; |
|
148 | - const DISTRIBUTION_VIRTUAL_BUCKET = 6; |
|
149 | - |
|
150 | - /** |
|
151 | - * <p>Enables or disables compatibility with libketama-like behavior. When |
|
152 | - * enabled, the item key hashing algorithm is set to MD5 and distribution is |
|
153 | - * set to be weighted consistent hashing distribution. This is useful |
|
154 | - * because other libketama-based clients (Python, Ruby, etc.) with the same |
|
155 | - * server configuration will be able to access the keys transparently. |
|
156 | - * </p> |
|
157 | - * <p> |
|
158 | - * It is highly recommended to enable this option if you want to use |
|
159 | - * consistent hashing, and it may be enabled by default in future |
|
160 | - * releases. |
|
161 | - * </p> |
|
162 | - * <p>Type: boolean, default: <b>FALSE</b>.</p> |
|
163 | - * @link https://php.net/manual/en/memcached.constants.php |
|
164 | - */ |
|
165 | - const OPT_LIBKETAMA_COMPATIBLE = 16; |
|
166 | - const OPT_LIBKETAMA_HASH = 17; |
|
167 | - const OPT_TCP_KEEPALIVE = 32; |
|
168 | - |
|
169 | - /** |
|
170 | - * <p>Enables or disables buffered I/O. Enabling buffered I/O causes |
|
171 | - * storage commands to "buffer" instead of being sent. Any action that |
|
172 | - * retrieves data causes this buffer to be sent to the remote connection. |
|
173 | - * Quitting the connection or closing down the connection will also cause |
|
174 | - * the buffered data to be pushed to the remote connection.</p> |
|
175 | - * <p>Type: boolean, default: <b>FALSE</b>.</p> |
|
176 | - * @link https://php.net/manual/en/memcached.constants.php |
|
177 | - */ |
|
178 | - const OPT_BUFFER_WRITES = 10; |
|
179 | - |
|
180 | - /** |
|
181 | - * <p>Enable the use of the binary protocol. Please note that you cannot |
|
182 | - * toggle this option on an open connection.</p> |
|
183 | - * <p>Type: boolean, default: <b>FALSE</b>.</p> |
|
184 | - * @link https://php.net/manual/en/memcached.constants.php |
|
185 | - */ |
|
186 | - const OPT_BINARY_PROTOCOL = 18; |
|
187 | - |
|
188 | - /** |
|
189 | - * <p>Enables or disables asynchronous I/O. This is the fastest transport |
|
190 | - * available for storage functions.</p> |
|
191 | - * <p>Type: boolean, default: <b>FALSE</b>.</p> |
|
192 | - * @link https://php.net/manual/en/memcached.constants.php |
|
193 | - */ |
|
194 | - const OPT_NO_BLOCK = 0; |
|
195 | - |
|
196 | - /** |
|
197 | - * <p>Enables or disables the no-delay feature for connecting sockets (may |
|
198 | - * be faster in some environments).</p> |
|
199 | - * <p>Type: boolean, default: <b>FALSE</b>.</p> |
|
200 | - * @link https://php.net/manual/en/memcached.constants.php |
|
201 | - */ |
|
202 | - const OPT_TCP_NODELAY = 1; |
|
203 | - |
|
204 | - /** |
|
205 | - * <p>The maximum socket send buffer in bytes.</p> |
|
206 | - * <p>Type: integer, default: varies by platform/kernel |
|
207 | - * configuration.</p> |
|
208 | - * @link https://php.net/manual/en/memcached.constants.php |
|
209 | - */ |
|
210 | - const OPT_SOCKET_SEND_SIZE = 4; |
|
211 | - |
|
212 | - /** |
|
213 | - * <p>The maximum socket receive buffer in bytes.</p> |
|
214 | - * <p>Type: integer, default: varies by platform/kernel |
|
215 | - * configuration.</p> |
|
216 | - * @link https://php.net/manual/en/memcached.constants.php |
|
217 | - */ |
|
218 | - const OPT_SOCKET_RECV_SIZE = 5; |
|
219 | - |
|
220 | - /** |
|
221 | - * <p>In non-blocking mode this set the value of the timeout during socket |
|
222 | - * connection, in milliseconds.</p> |
|
223 | - * <p>Type: integer, default: 1000.</p> |
|
224 | - * @link https://php.net/manual/en/memcached.constants.php |
|
225 | - */ |
|
226 | - const OPT_CONNECT_TIMEOUT = 14; |
|
227 | - |
|
228 | - /** |
|
229 | - * <p>The amount of time, in seconds, to wait until retrying a failed |
|
230 | - * connection attempt.</p> |
|
231 | - * <p>Type: integer, default: 0.</p> |
|
232 | - * @link https://php.net/manual/en/memcached.constants.php |
|
233 | - */ |
|
234 | - const OPT_RETRY_TIMEOUT = 15; |
|
235 | - |
|
236 | - /** |
|
237 | - * <p>Socket sending timeout, in microseconds. In cases where you cannot |
|
238 | - * use non-blocking I/O this will allow you to still have timeouts on the |
|
239 | - * sending of data.</p> |
|
240 | - * <p>Type: integer, default: 0.</p> |
|
241 | - * @link https://php.net/manual/en/memcached.constants.php |
|
242 | - */ |
|
243 | - const OPT_SEND_TIMEOUT = 19; |
|
244 | - |
|
245 | - /** |
|
246 | - * <p>Socket reading timeout, in microseconds. In cases where you cannot |
|
247 | - * use non-blocking I/O this will allow you to still have timeouts on the |
|
248 | - * reading of data.</p> |
|
249 | - * <p>Type: integer, default: 0.</p> |
|
250 | - * @link https://php.net/manual/en/memcached.constants.php |
|
251 | - */ |
|
252 | - const OPT_RECV_TIMEOUT = 20; |
|
253 | - |
|
254 | - /** |
|
255 | - * <p>Timeout for connection polling, in milliseconds.</p> |
|
256 | - * <p>Type: integer, default: 1000.</p> |
|
257 | - * @link https://php.net/manual/en/memcached.constants.php |
|
258 | - */ |
|
259 | - const OPT_POLL_TIMEOUT = 8; |
|
260 | - |
|
261 | - /** |
|
262 | - * <p>Enables or disables caching of DNS lookups.</p> |
|
263 | - * <p>Type: boolean, default: <b>FALSE</b>.</p> |
|
264 | - * @link https://php.net/manual/en/memcached.constants.php |
|
265 | - */ |
|
266 | - const OPT_CACHE_LOOKUPS = 6; |
|
267 | - |
|
268 | - /** |
|
269 | - * <p>Specifies the failure limit for server connection attempts. The |
|
270 | - * server will be removed after this many continuous connection |
|
271 | - * failures.</p> |
|
272 | - * <p>Type: integer, default: 0.</p> |
|
273 | - * @link https://php.net/manual/en/memcached.constants.php |
|
274 | - */ |
|
275 | - const OPT_SERVER_FAILURE_LIMIT = 21; |
|
276 | - const OPT_AUTO_EJECT_HOSTS = 28; |
|
277 | - const OPT_HASH_WITH_PREFIX_KEY = 25; |
|
278 | - const OPT_NOREPLY = 26; |
|
279 | - const OPT_SORT_HOSTS = 12; |
|
280 | - const OPT_VERIFY_KEY = 13; |
|
281 | - const OPT_USE_UDP = 27; |
|
282 | - const OPT_NUMBER_OF_REPLICAS = 29; |
|
283 | - const OPT_RANDOMIZE_REPLICA_READ = 30; |
|
284 | - const OPT_CORK = 31; |
|
285 | - const OPT_REMOVE_FAILED_SERVERS = 35; |
|
286 | - const OPT_DEAD_TIMEOUT = 36; |
|
287 | - const OPT_SERVER_TIMEOUT_LIMIT = 37; |
|
288 | - const OPT_MAX = 38; |
|
289 | - const OPT_IO_BYTES_WATERMARK = 23; |
|
290 | - const OPT_IO_KEY_PREFETCH = 24; |
|
291 | - const OPT_IO_MSG_WATERMARK = 22; |
|
292 | - const OPT_LOAD_FROM_FILE = 34; |
|
293 | - const OPT_SUPPORT_CAS = 7; |
|
294 | - const OPT_TCP_KEEPIDLE = 33; |
|
295 | - const OPT_USER_DATA = 11; |
|
296 | - |
|
297 | - |
|
298 | - /** |
|
299 | - * <p>The operation was successful.</p> |
|
300 | - * @link https://php.net/manual/en/memcached.constants.php |
|
301 | - */ |
|
302 | - const RES_SUCCESS = 0; |
|
303 | - |
|
304 | - /** |
|
305 | - * <p>The operation failed in some fashion.</p> |
|
306 | - * @link https://php.net/manual/en/memcached.constants.php |
|
307 | - */ |
|
308 | - const RES_FAILURE = 1; |
|
309 | - |
|
310 | - /** |
|
311 | - * <p>DNS lookup failed.</p> |
|
312 | - * @link https://php.net/manual/en/memcached.constants.php |
|
313 | - */ |
|
314 | - const RES_HOST_LOOKUP_FAILURE = 2; |
|
315 | - |
|
316 | - /** |
|
317 | - * <p>Failed to read network data.</p> |
|
318 | - * @link https://php.net/manual/en/memcached.constants.php |
|
319 | - */ |
|
320 | - const RES_UNKNOWN_READ_FAILURE = 7; |
|
321 | - |
|
322 | - /** |
|
323 | - * <p>Bad command in memcached protocol.</p> |
|
324 | - * @link https://php.net/manual/en/memcached.constants.php |
|
325 | - */ |
|
326 | - const RES_PROTOCOL_ERROR = 8; |
|
327 | - |
|
328 | - /** |
|
329 | - * <p>Error on the client side.</p> |
|
330 | - * @link https://php.net/manual/en/memcached.constants.php |
|
331 | - */ |
|
332 | - const RES_CLIENT_ERROR = 9; |
|
333 | - |
|
334 | - /** |
|
335 | - * <p>Error on the server side.</p> |
|
336 | - * @link https://php.net/manual/en/memcached.constants.php |
|
337 | - */ |
|
338 | - const RES_SERVER_ERROR = 10; |
|
339 | - |
|
340 | - /** |
|
341 | - * <p>Failed to write network data.</p> |
|
342 | - * @link https://php.net/manual/en/memcached.constants.php |
|
343 | - */ |
|
344 | - const RES_WRITE_FAILURE = 5; |
|
345 | - |
|
346 | - /** |
|
347 | - * <p>Failed to do compare-and-swap: item you are trying to store has been |
|
348 | - * modified since you last fetched it.</p> |
|
349 | - * @link https://php.net/manual/en/memcached.constants.php |
|
350 | - */ |
|
351 | - const RES_DATA_EXISTS = 12; |
|
352 | - |
|
353 | - /** |
|
354 | - * <p>Item was not stored: but not because of an error. This normally |
|
355 | - * means that either the condition for an "add" or a "replace" command |
|
356 | - * wasn't met, or that the item is in a delete queue.</p> |
|
357 | - * @link https://php.net/manual/en/memcached.constants.php |
|
358 | - */ |
|
359 | - const RES_NOTSTORED = 14; |
|
360 | - |
|
361 | - /** |
|
362 | - * <p>Item with this key was not found (with "get" operation or "cas" |
|
363 | - * operations).</p> |
|
364 | - * @link https://php.net/manual/en/memcached.constants.php |
|
365 | - */ |
|
366 | - const RES_NOTFOUND = 16; |
|
367 | - |
|
368 | - /** |
|
369 | - * <p>Partial network data read error.</p> |
|
370 | - * @link https://php.net/manual/en/memcached.constants.php |
|
371 | - */ |
|
372 | - const RES_PARTIAL_READ = 18; |
|
373 | - |
|
374 | - /** |
|
375 | - * <p>Some errors occurred during multi-get.</p> |
|
376 | - * @link https://php.net/manual/en/memcached.constants.php |
|
377 | - */ |
|
378 | - const RES_SOME_ERRORS = 19; |
|
379 | - |
|
380 | - /** |
|
381 | - * <p>Server list is empty.</p> |
|
382 | - * @link https://php.net/manual/en/memcached.constants.php |
|
383 | - */ |
|
384 | - const RES_NO_SERVERS = 20; |
|
385 | - |
|
386 | - /** |
|
387 | - * <p>End of result set.</p> |
|
388 | - * @link https://php.net/manual/en/memcached.constants.php |
|
389 | - */ |
|
390 | - const RES_END = 21; |
|
391 | - |
|
392 | - /** |
|
393 | - * <p>System error.</p> |
|
394 | - * @link https://php.net/manual/en/memcached.constants.php |
|
395 | - */ |
|
396 | - const RES_ERRNO = 26; |
|
397 | - |
|
398 | - /** |
|
399 | - * <p>The operation was buffered.</p> |
|
400 | - * @link https://php.net/manual/en/memcached.constants.php |
|
401 | - */ |
|
402 | - const RES_BUFFERED = 32; |
|
403 | - |
|
404 | - /** |
|
405 | - * <p>The operation timed out.</p> |
|
406 | - * @link https://php.net/manual/en/memcached.constants.php |
|
407 | - */ |
|
408 | - const RES_TIMEOUT = 31; |
|
409 | - |
|
410 | - /** |
|
411 | - * <p>Bad key.</p> |
|
412 | - * @link https://php.net/manual/en/memcached.constants.php |
|
413 | - */ |
|
414 | - const RES_BAD_KEY_PROVIDED = 33; |
|
415 | - const RES_STORED = 15; |
|
416 | - const RES_DELETED = 22; |
|
417 | - const RES_STAT = 24; |
|
418 | - const RES_ITEM = 25; |
|
419 | - const RES_NOT_SUPPORTED = 28; |
|
420 | - const RES_FETCH_NOTFINISHED = 30; |
|
421 | - const RES_SERVER_MARKED_DEAD = 35; |
|
422 | - const RES_UNKNOWN_STAT_KEY = 36; |
|
423 | - const RES_INVALID_HOST_PROTOCOL = 34; |
|
424 | - const RES_MEMORY_ALLOCATION_FAILURE = 17; |
|
425 | - const RES_E2BIG = 37; |
|
426 | - const RES_KEY_TOO_BIG = 39; |
|
427 | - const RES_SERVER_TEMPORARILY_DISABLED = 47; |
|
428 | - const RES_SERVER_MEMORY_ALLOCATION_FAILURE = 48; |
|
429 | - const RES_AUTH_PROBLEM = 40; |
|
430 | - const RES_AUTH_FAILURE = 41; |
|
431 | - const RES_AUTH_CONTINUE = 42; |
|
432 | - const RES_CONNECTION_FAILURE = 3; |
|
433 | - const RES_CONNECTION_BIND_FAILURE = 4; |
|
434 | - const RES_READ_FAILURE = 6; |
|
435 | - const RES_DATA_DOES_NOT_EXIST = 13; |
|
436 | - const RES_VALUE = 23; |
|
437 | - const RES_FAIL_UNIX_SOCKET = 27; |
|
438 | - const RES_NO_KEY_PROVIDED = 29; |
|
439 | - const RES_INVALID_ARGUMENTS = 38; |
|
440 | - const RES_PARSE_ERROR = 43; |
|
441 | - const RES_PARSE_USER_ERROR = 44; |
|
442 | - const RES_DEPRECATED = 45; |
|
443 | - const RES_IN_PROGRESS = 46; |
|
444 | - const RES_MAXIMUM_RETURN = 49; |
|
11 | + /** |
|
12 | + * <p>Enables or disables payload compression. When enabled, |
|
13 | + * item values longer than a certain threshold (currently 100 bytes) will be |
|
14 | + * compressed during storage and decompressed during retrieval |
|
15 | + * transparently.</p> |
|
16 | + * <p>Type: boolean, default: <b>TRUE</b>.</p> |
|
17 | + * @link https://php.net/manual/en/memcached.constants.php |
|
18 | + */ |
|
19 | + const OPT_COMPRESSION = -1001; |
|
20 | + const OPT_COMPRESSION_TYPE = -1004; |
|
21 | + |
|
22 | + /** |
|
23 | + * <p>This can be used to create a "domain" for your item keys. The value |
|
24 | + * specified here will be prefixed to each of the keys. It cannot be |
|
25 | + * longer than 128 characters and will reduce the |
|
26 | + * maximum available key size. The prefix is applied only to the item keys, |
|
27 | + * not to the server keys.</p> |
|
28 | + * <p>Type: string, default: "".</p> |
|
29 | + * @link https://php.net/manual/en/memcached.constants.php |
|
30 | + */ |
|
31 | + const OPT_PREFIX_KEY = -1002; |
|
32 | + |
|
33 | + /** |
|
34 | + * <p> |
|
35 | + * Specifies the serializer to use for serializing non-scalar values. |
|
36 | + * The valid serializers are <b>Memcached::SERIALIZER_PHP</b> |
|
37 | + * or <b>Memcached::SERIALIZER_IGBINARY</b>. The latter is |
|
38 | + * supported only when memcached is configured with |
|
39 | + * --enable-memcached-igbinary option and the |
|
40 | + * igbinary extension is loaded. |
|
41 | + * </p> |
|
42 | + * <p>Type: integer, default: <b>Memcached::SERIALIZER_PHP</b>.</p> |
|
43 | + * @link https://php.net/manual/en/memcached.constants.php |
|
44 | + */ |
|
45 | + const OPT_SERIALIZER = -1003; |
|
46 | + |
|
47 | + /** |
|
48 | + * <p>Indicates whether igbinary serializer support is available.</p> |
|
49 | + * <p>Type: boolean.</p> |
|
50 | + * @link https://php.net/manual/en/memcached.constants.php |
|
51 | + */ |
|
52 | + const HAVE_IGBINARY = 0; |
|
53 | + |
|
54 | + /** |
|
55 | + * <p>Indicates whether JSON serializer support is available.</p> |
|
56 | + * <p>Type: boolean.</p> |
|
57 | + * @link https://php.net/manual/en/memcached.constants.php |
|
58 | + */ |
|
59 | + const HAVE_JSON = 0; |
|
60 | + const HAVE_SESSION = 1; |
|
61 | + const HAVE_SASL = 0; |
|
62 | + |
|
63 | + /** |
|
64 | + * <p>Specifies the hashing algorithm used for the item keys. The valid |
|
65 | + * values are supplied via <b>Memcached::HASH_*</b> constants. |
|
66 | + * Each hash algorithm has its advantages and its disadvantages. Go with the |
|
67 | + * default if you don't know or don't care.</p> |
|
68 | + * <p>Type: integer, default: <b>Memcached::HASH_DEFAULT</b></p> |
|
69 | + * @link https://php.net/manual/en/memcached.constants.php |
|
70 | + */ |
|
71 | + const OPT_HASH = 2; |
|
72 | + |
|
73 | + /** |
|
74 | + * <p>The default (Jenkins one-at-a-time) item key hashing algorithm.</p> |
|
75 | + * @link https://php.net/manual/en/memcached.constants.php |
|
76 | + */ |
|
77 | + const HASH_DEFAULT = 0; |
|
78 | + |
|
79 | + /** |
|
80 | + * <p>MD5 item key hashing algorithm.</p> |
|
81 | + * @link https://php.net/manual/en/memcached.constants.php |
|
82 | + */ |
|
83 | + const HASH_MD5 = 1; |
|
84 | + |
|
85 | + /** |
|
86 | + * <p>CRC item key hashing algorithm.</p> |
|
87 | + * @link https://php.net/manual/en/memcached.constants.php |
|
88 | + */ |
|
89 | + const HASH_CRC = 2; |
|
90 | + |
|
91 | + /** |
|
92 | + * <p>FNV1_64 item key hashing algorithm.</p> |
|
93 | + * @link https://php.net/manual/en/memcached.constants.php |
|
94 | + */ |
|
95 | + const HASH_FNV1_64 = 3; |
|
96 | + |
|
97 | + /** |
|
98 | + * <p>FNV1_64A item key hashing algorithm.</p> |
|
99 | + * @link https://php.net/manual/en/memcached.constants.php |
|
100 | + */ |
|
101 | + const HASH_FNV1A_64 = 4; |
|
102 | + |
|
103 | + /** |
|
104 | + * <p>FNV1_32 item key hashing algorithm.</p> |
|
105 | + * @link https://php.net/manual/en/memcached.constants.php |
|
106 | + */ |
|
107 | + const HASH_FNV1_32 = 5; |
|
108 | + |
|
109 | + /** |
|
110 | + * <p>FNV1_32A item key hashing algorithm.</p> |
|
111 | + * @link https://php.net/manual/en/memcached.constants.php |
|
112 | + */ |
|
113 | + const HASH_FNV1A_32 = 6; |
|
114 | + |
|
115 | + /** |
|
116 | + * <p>Hsieh item key hashing algorithm.</p> |
|
117 | + * @link https://php.net/manual/en/memcached.constants.php |
|
118 | + */ |
|
119 | + const HASH_HSIEH = 7; |
|
120 | + |
|
121 | + /** |
|
122 | + * <p>Murmur item key hashing algorithm.</p> |
|
123 | + * @link https://php.net/manual/en/memcached.constants.php |
|
124 | + */ |
|
125 | + const HASH_MURMUR = 8; |
|
126 | + |
|
127 | + /** |
|
128 | + * <p>Specifies the method of distributing item keys to the servers. |
|
129 | + * Currently supported methods are modulo and consistent hashing. Consistent |
|
130 | + * hashing delivers better distribution and allows servers to be added to |
|
131 | + * the cluster with minimal cache losses.</p> |
|
132 | + * <p>Type: integer, default: <b>Memcached::DISTRIBUTION_MODULA.</b></p> |
|
133 | + * @link https://php.net/manual/en/memcached.constants.php |
|
134 | + */ |
|
135 | + const OPT_DISTRIBUTION = 9; |
|
136 | + |
|
137 | + /** |
|
138 | + * <p>Modulo-based key distribution algorithm.</p> |
|
139 | + * @link https://php.net/manual/en/memcached.constants.php |
|
140 | + */ |
|
141 | + const DISTRIBUTION_MODULA = 0; |
|
142 | + |
|
143 | + /** |
|
144 | + * <p>Consistent hashing key distribution algorithm (based on libketama).</p> |
|
145 | + * @link https://php.net/manual/en/memcached.constants.php |
|
146 | + */ |
|
147 | + const DISTRIBUTION_CONSISTENT = 1; |
|
148 | + const DISTRIBUTION_VIRTUAL_BUCKET = 6; |
|
149 | + |
|
150 | + /** |
|
151 | + * <p>Enables or disables compatibility with libketama-like behavior. When |
|
152 | + * enabled, the item key hashing algorithm is set to MD5 and distribution is |
|
153 | + * set to be weighted consistent hashing distribution. This is useful |
|
154 | + * because other libketama-based clients (Python, Ruby, etc.) with the same |
|
155 | + * server configuration will be able to access the keys transparently. |
|
156 | + * </p> |
|
157 | + * <p> |
|
158 | + * It is highly recommended to enable this option if you want to use |
|
159 | + * consistent hashing, and it may be enabled by default in future |
|
160 | + * releases. |
|
161 | + * </p> |
|
162 | + * <p>Type: boolean, default: <b>FALSE</b>.</p> |
|
163 | + * @link https://php.net/manual/en/memcached.constants.php |
|
164 | + */ |
|
165 | + const OPT_LIBKETAMA_COMPATIBLE = 16; |
|
166 | + const OPT_LIBKETAMA_HASH = 17; |
|
167 | + const OPT_TCP_KEEPALIVE = 32; |
|
168 | + |
|
169 | + /** |
|
170 | + * <p>Enables or disables buffered I/O. Enabling buffered I/O causes |
|
171 | + * storage commands to "buffer" instead of being sent. Any action that |
|
172 | + * retrieves data causes this buffer to be sent to the remote connection. |
|
173 | + * Quitting the connection or closing down the connection will also cause |
|
174 | + * the buffered data to be pushed to the remote connection.</p> |
|
175 | + * <p>Type: boolean, default: <b>FALSE</b>.</p> |
|
176 | + * @link https://php.net/manual/en/memcached.constants.php |
|
177 | + */ |
|
178 | + const OPT_BUFFER_WRITES = 10; |
|
179 | + |
|
180 | + /** |
|
181 | + * <p>Enable the use of the binary protocol. Please note that you cannot |
|
182 | + * toggle this option on an open connection.</p> |
|
183 | + * <p>Type: boolean, default: <b>FALSE</b>.</p> |
|
184 | + * @link https://php.net/manual/en/memcached.constants.php |
|
185 | + */ |
|
186 | + const OPT_BINARY_PROTOCOL = 18; |
|
187 | + |
|
188 | + /** |
|
189 | + * <p>Enables or disables asynchronous I/O. This is the fastest transport |
|
190 | + * available for storage functions.</p> |
|
191 | + * <p>Type: boolean, default: <b>FALSE</b>.</p> |
|
192 | + * @link https://php.net/manual/en/memcached.constants.php |
|
193 | + */ |
|
194 | + const OPT_NO_BLOCK = 0; |
|
195 | + |
|
196 | + /** |
|
197 | + * <p>Enables or disables the no-delay feature for connecting sockets (may |
|
198 | + * be faster in some environments).</p> |
|
199 | + * <p>Type: boolean, default: <b>FALSE</b>.</p> |
|
200 | + * @link https://php.net/manual/en/memcached.constants.php |
|
201 | + */ |
|
202 | + const OPT_TCP_NODELAY = 1; |
|
203 | + |
|
204 | + /** |
|
205 | + * <p>The maximum socket send buffer in bytes.</p> |
|
206 | + * <p>Type: integer, default: varies by platform/kernel |
|
207 | + * configuration.</p> |
|
208 | + * @link https://php.net/manual/en/memcached.constants.php |
|
209 | + */ |
|
210 | + const OPT_SOCKET_SEND_SIZE = 4; |
|
211 | + |
|
212 | + /** |
|
213 | + * <p>The maximum socket receive buffer in bytes.</p> |
|
214 | + * <p>Type: integer, default: varies by platform/kernel |
|
215 | + * configuration.</p> |
|
216 | + * @link https://php.net/manual/en/memcached.constants.php |
|
217 | + */ |
|
218 | + const OPT_SOCKET_RECV_SIZE = 5; |
|
219 | + |
|
220 | + /** |
|
221 | + * <p>In non-blocking mode this set the value of the timeout during socket |
|
222 | + * connection, in milliseconds.</p> |
|
223 | + * <p>Type: integer, default: 1000.</p> |
|
224 | + * @link https://php.net/manual/en/memcached.constants.php |
|
225 | + */ |
|
226 | + const OPT_CONNECT_TIMEOUT = 14; |
|
227 | + |
|
228 | + /** |
|
229 | + * <p>The amount of time, in seconds, to wait until retrying a failed |
|
230 | + * connection attempt.</p> |
|
231 | + * <p>Type: integer, default: 0.</p> |
|
232 | + * @link https://php.net/manual/en/memcached.constants.php |
|
233 | + */ |
|
234 | + const OPT_RETRY_TIMEOUT = 15; |
|
235 | + |
|
236 | + /** |
|
237 | + * <p>Socket sending timeout, in microseconds. In cases where you cannot |
|
238 | + * use non-blocking I/O this will allow you to still have timeouts on the |
|
239 | + * sending of data.</p> |
|
240 | + * <p>Type: integer, default: 0.</p> |
|
241 | + * @link https://php.net/manual/en/memcached.constants.php |
|
242 | + */ |
|
243 | + const OPT_SEND_TIMEOUT = 19; |
|
244 | + |
|
245 | + /** |
|
246 | + * <p>Socket reading timeout, in microseconds. In cases where you cannot |
|
247 | + * use non-blocking I/O this will allow you to still have timeouts on the |
|
248 | + * reading of data.</p> |
|
249 | + * <p>Type: integer, default: 0.</p> |
|
250 | + * @link https://php.net/manual/en/memcached.constants.php |
|
251 | + */ |
|
252 | + const OPT_RECV_TIMEOUT = 20; |
|
253 | + |
|
254 | + /** |
|
255 | + * <p>Timeout for connection polling, in milliseconds.</p> |
|
256 | + * <p>Type: integer, default: 1000.</p> |
|
257 | + * @link https://php.net/manual/en/memcached.constants.php |
|
258 | + */ |
|
259 | + const OPT_POLL_TIMEOUT = 8; |
|
260 | + |
|
261 | + /** |
|
262 | + * <p>Enables or disables caching of DNS lookups.</p> |
|
263 | + * <p>Type: boolean, default: <b>FALSE</b>.</p> |
|
264 | + * @link https://php.net/manual/en/memcached.constants.php |
|
265 | + */ |
|
266 | + const OPT_CACHE_LOOKUPS = 6; |
|
267 | + |
|
268 | + /** |
|
269 | + * <p>Specifies the failure limit for server connection attempts. The |
|
270 | + * server will be removed after this many continuous connection |
|
271 | + * failures.</p> |
|
272 | + * <p>Type: integer, default: 0.</p> |
|
273 | + * @link https://php.net/manual/en/memcached.constants.php |
|
274 | + */ |
|
275 | + const OPT_SERVER_FAILURE_LIMIT = 21; |
|
276 | + const OPT_AUTO_EJECT_HOSTS = 28; |
|
277 | + const OPT_HASH_WITH_PREFIX_KEY = 25; |
|
278 | + const OPT_NOREPLY = 26; |
|
279 | + const OPT_SORT_HOSTS = 12; |
|
280 | + const OPT_VERIFY_KEY = 13; |
|
281 | + const OPT_USE_UDP = 27; |
|
282 | + const OPT_NUMBER_OF_REPLICAS = 29; |
|
283 | + const OPT_RANDOMIZE_REPLICA_READ = 30; |
|
284 | + const OPT_CORK = 31; |
|
285 | + const OPT_REMOVE_FAILED_SERVERS = 35; |
|
286 | + const OPT_DEAD_TIMEOUT = 36; |
|
287 | + const OPT_SERVER_TIMEOUT_LIMIT = 37; |
|
288 | + const OPT_MAX = 38; |
|
289 | + const OPT_IO_BYTES_WATERMARK = 23; |
|
290 | + const OPT_IO_KEY_PREFETCH = 24; |
|
291 | + const OPT_IO_MSG_WATERMARK = 22; |
|
292 | + const OPT_LOAD_FROM_FILE = 34; |
|
293 | + const OPT_SUPPORT_CAS = 7; |
|
294 | + const OPT_TCP_KEEPIDLE = 33; |
|
295 | + const OPT_USER_DATA = 11; |
|
296 | + |
|
297 | + |
|
298 | + /** |
|
299 | + * <p>The operation was successful.</p> |
|
300 | + * @link https://php.net/manual/en/memcached.constants.php |
|
301 | + */ |
|
302 | + const RES_SUCCESS = 0; |
|
303 | + |
|
304 | + /** |
|
305 | + * <p>The operation failed in some fashion.</p> |
|
306 | + * @link https://php.net/manual/en/memcached.constants.php |
|
307 | + */ |
|
308 | + const RES_FAILURE = 1; |
|
309 | + |
|
310 | + /** |
|
311 | + * <p>DNS lookup failed.</p> |
|
312 | + * @link https://php.net/manual/en/memcached.constants.php |
|
313 | + */ |
|
314 | + const RES_HOST_LOOKUP_FAILURE = 2; |
|
315 | + |
|
316 | + /** |
|
317 | + * <p>Failed to read network data.</p> |
|
318 | + * @link https://php.net/manual/en/memcached.constants.php |
|
319 | + */ |
|
320 | + const RES_UNKNOWN_READ_FAILURE = 7; |
|
321 | + |
|
322 | + /** |
|
323 | + * <p>Bad command in memcached protocol.</p> |
|
324 | + * @link https://php.net/manual/en/memcached.constants.php |
|
325 | + */ |
|
326 | + const RES_PROTOCOL_ERROR = 8; |
|
327 | + |
|
328 | + /** |
|
329 | + * <p>Error on the client side.</p> |
|
330 | + * @link https://php.net/manual/en/memcached.constants.php |
|
331 | + */ |
|
332 | + const RES_CLIENT_ERROR = 9; |
|
333 | + |
|
334 | + /** |
|
335 | + * <p>Error on the server side.</p> |
|
336 | + * @link https://php.net/manual/en/memcached.constants.php |
|
337 | + */ |
|
338 | + const RES_SERVER_ERROR = 10; |
|
339 | + |
|
340 | + /** |
|
341 | + * <p>Failed to write network data.</p> |
|
342 | + * @link https://php.net/manual/en/memcached.constants.php |
|
343 | + */ |
|
344 | + const RES_WRITE_FAILURE = 5; |
|
345 | + |
|
346 | + /** |
|
347 | + * <p>Failed to do compare-and-swap: item you are trying to store has been |
|
348 | + * modified since you last fetched it.</p> |
|
349 | + * @link https://php.net/manual/en/memcached.constants.php |
|
350 | + */ |
|
351 | + const RES_DATA_EXISTS = 12; |
|
352 | + |
|
353 | + /** |
|
354 | + * <p>Item was not stored: but not because of an error. This normally |
|
355 | + * means that either the condition for an "add" or a "replace" command |
|
356 | + * wasn't met, or that the item is in a delete queue.</p> |
|
357 | + * @link https://php.net/manual/en/memcached.constants.php |
|
358 | + */ |
|
359 | + const RES_NOTSTORED = 14; |
|
360 | + |
|
361 | + /** |
|
362 | + * <p>Item with this key was not found (with "get" operation or "cas" |
|
363 | + * operations).</p> |
|
364 | + * @link https://php.net/manual/en/memcached.constants.php |
|
365 | + */ |
|
366 | + const RES_NOTFOUND = 16; |
|
367 | + |
|
368 | + /** |
|
369 | + * <p>Partial network data read error.</p> |
|
370 | + * @link https://php.net/manual/en/memcached.constants.php |
|
371 | + */ |
|
372 | + const RES_PARTIAL_READ = 18; |
|
373 | + |
|
374 | + /** |
|
375 | + * <p>Some errors occurred during multi-get.</p> |
|
376 | + * @link https://php.net/manual/en/memcached.constants.php |
|
377 | + */ |
|
378 | + const RES_SOME_ERRORS = 19; |
|
379 | + |
|
380 | + /** |
|
381 | + * <p>Server list is empty.</p> |
|
382 | + * @link https://php.net/manual/en/memcached.constants.php |
|
383 | + */ |
|
384 | + const RES_NO_SERVERS = 20; |
|
385 | + |
|
386 | + /** |
|
387 | + * <p>End of result set.</p> |
|
388 | + * @link https://php.net/manual/en/memcached.constants.php |
|
389 | + */ |
|
390 | + const RES_END = 21; |
|
391 | + |
|
392 | + /** |
|
393 | + * <p>System error.</p> |
|
394 | + * @link https://php.net/manual/en/memcached.constants.php |
|
395 | + */ |
|
396 | + const RES_ERRNO = 26; |
|
397 | + |
|
398 | + /** |
|
399 | + * <p>The operation was buffered.</p> |
|
400 | + * @link https://php.net/manual/en/memcached.constants.php |
|
401 | + */ |
|
402 | + const RES_BUFFERED = 32; |
|
403 | + |
|
404 | + /** |
|
405 | + * <p>The operation timed out.</p> |
|
406 | + * @link https://php.net/manual/en/memcached.constants.php |
|
407 | + */ |
|
408 | + const RES_TIMEOUT = 31; |
|
409 | + |
|
410 | + /** |
|
411 | + * <p>Bad key.</p> |
|
412 | + * @link https://php.net/manual/en/memcached.constants.php |
|
413 | + */ |
|
414 | + const RES_BAD_KEY_PROVIDED = 33; |
|
415 | + const RES_STORED = 15; |
|
416 | + const RES_DELETED = 22; |
|
417 | + const RES_STAT = 24; |
|
418 | + const RES_ITEM = 25; |
|
419 | + const RES_NOT_SUPPORTED = 28; |
|
420 | + const RES_FETCH_NOTFINISHED = 30; |
|
421 | + const RES_SERVER_MARKED_DEAD = 35; |
|
422 | + const RES_UNKNOWN_STAT_KEY = 36; |
|
423 | + const RES_INVALID_HOST_PROTOCOL = 34; |
|
424 | + const RES_MEMORY_ALLOCATION_FAILURE = 17; |
|
425 | + const RES_E2BIG = 37; |
|
426 | + const RES_KEY_TOO_BIG = 39; |
|
427 | + const RES_SERVER_TEMPORARILY_DISABLED = 47; |
|
428 | + const RES_SERVER_MEMORY_ALLOCATION_FAILURE = 48; |
|
429 | + const RES_AUTH_PROBLEM = 40; |
|
430 | + const RES_AUTH_FAILURE = 41; |
|
431 | + const RES_AUTH_CONTINUE = 42; |
|
432 | + const RES_CONNECTION_FAILURE = 3; |
|
433 | + const RES_CONNECTION_BIND_FAILURE = 4; |
|
434 | + const RES_READ_FAILURE = 6; |
|
435 | + const RES_DATA_DOES_NOT_EXIST = 13; |
|
436 | + const RES_VALUE = 23; |
|
437 | + const RES_FAIL_UNIX_SOCKET = 27; |
|
438 | + const RES_NO_KEY_PROVIDED = 29; |
|
439 | + const RES_INVALID_ARGUMENTS = 38; |
|
440 | + const RES_PARSE_ERROR = 43; |
|
441 | + const RES_PARSE_USER_ERROR = 44; |
|
442 | + const RES_DEPRECATED = 45; |
|
443 | + const RES_IN_PROGRESS = 46; |
|
444 | + const RES_MAXIMUM_RETURN = 49; |
|
445 | 445 | |
446 | 446 | |
447 | 447 | |
448 | - /** |
|
449 | - * <p>Failed to create network socket.</p> |
|
450 | - * @link https://php.net/manual/en/memcached.constants.php |
|
451 | - */ |
|
452 | - const RES_CONNECTION_SOCKET_CREATE_FAILURE = 11; |
|
453 | - |
|
454 | - /** |
|
455 | - * <p>Payload failure: could not compress/decompress or serialize/unserialize the value.</p> |
|
456 | - * @link https://php.net/manual/en/memcached.constants.php |
|
457 | - */ |
|
458 | - const RES_PAYLOAD_FAILURE = -1001; |
|
459 | - |
|
460 | - /** |
|
461 | - * <p>The default PHP serializer.</p> |
|
462 | - * @link https://php.net/manual/en/memcached.constants.php |
|
463 | - */ |
|
464 | - const SERIALIZER_PHP = 1; |
|
465 | - |
|
466 | - /** |
|
467 | - * <p>The igbinary serializer. |
|
468 | - * Instead of textual representation it stores PHP data structures in a |
|
469 | - * compact binary form, resulting in space and time gains.</p> |
|
470 | - * @link https://php.net/manual/en/memcached.constants.php |
|
471 | - */ |
|
472 | - const SERIALIZER_IGBINARY = 2; |
|
473 | - |
|
474 | - /** |
|
475 | - * <p>The JSON serializer. Requires PHP 5.2.10+.</p> |
|
476 | - * @link https://php.net/manual/en/memcached.constants.php |
|
477 | - */ |
|
478 | - const SERIALIZER_JSON = 3; |
|
479 | - const SERIALIZER_JSON_ARRAY = 4; |
|
480 | - const COMPRESSION_FASTLZ = 2; |
|
481 | - const COMPRESSION_ZLIB = 1; |
|
482 | - |
|
483 | - /** |
|
484 | - * <p>A flag for <b>Memcached::getMulti</b> and |
|
485 | - * <b>Memcached::getMultiByKey</b> to ensure that the keys are |
|
486 | - * returned in the same order as they were requested in. Non-existing keys |
|
487 | - * get a default value of NULL.</p> |
|
488 | - * @link https://php.net/manual/en/memcached.constants.php |
|
489 | - */ |
|
490 | - const GET_PRESERVE_ORDER = 1; |
|
491 | - const GET_ERROR_RETURN_VALUE = false; |
|
492 | - |
|
493 | - |
|
494 | - /** |
|
495 | - * (PECL memcached >= 0.1.0)<br/> |
|
496 | - * Create a Memcached instance |
|
497 | - * @link https://php.net/manual/en/memcached.construct.php |
|
498 | - * @param $persistent_id [optional] |
|
499 | - * @param $callback [optional] |
|
500 | - */ |
|
501 | - public function __construct ($persistent_id = '', $on_new_object_cb = null) {} |
|
502 | - |
|
503 | - /** |
|
504 | - * (PECL memcached >= 0.1.0)<br/> |
|
505 | - * Return the result code of the last operation |
|
506 | - * @link https://php.net/manual/en/memcached.getresultcode.php |
|
507 | - * @return int Result code of the last Memcached operation. |
|
508 | - */ |
|
509 | - public function getResultCode () {} |
|
510 | - |
|
511 | - /** |
|
512 | - * (PECL memcached >= 1.0.0)<br/> |
|
513 | - * Return the message describing the result of the last operation |
|
514 | - * @link https://php.net/manual/en/memcached.getresultmessage.php |
|
515 | - * @return string Message describing the result of the last Memcached operation. |
|
516 | - */ |
|
517 | - public function getResultMessage () {} |
|
518 | - |
|
519 | - /** |
|
520 | - * (PECL memcached >= 0.1.0)<br/> |
|
521 | - * Retrieve an item |
|
522 | - * @link https://php.net/manual/en/memcached.get.php |
|
523 | - * @param string $key <p> |
|
524 | - * The key of the item to retrieve. |
|
525 | - * </p> |
|
526 | - * @param callable $cache_cb [optional] <p> |
|
527 | - * Read-through caching callback or <b>NULL</b>. |
|
528 | - * </p> |
|
529 | - * @param int $flags [optional] <p> |
|
530 | - * The flags for the get operation. |
|
531 | - * </p> |
|
532 | - * @return mixed the value stored in the cache or <b>FALSE</b> otherwise. |
|
533 | - * The <b>Memcached::getResultCode</b> will return |
|
534 | - * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
|
535 | - */ |
|
536 | - public function get ($key, callable $cache_cb = null, $flags = 0) {} |
|
537 | - |
|
538 | - /** |
|
539 | - * (PECL memcached >= 0.1.0)<br/> |
|
540 | - * Retrieve an item from a specific server |
|
541 | - * @link https://php.net/manual/en/memcached.getbykey.php |
|
542 | - * @param string $server_key <p> |
|
543 | - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
544 | - * </p> |
|
545 | - * @param string $key <p> |
|
546 | - * The key of the item to fetch. |
|
547 | - * </p> |
|
548 | - * @param callable $cache_cb [optional] <p> |
|
549 | - * Read-through caching callback or <b>NULL</b> |
|
550 | - * </p> |
|
551 | - * @param int $flags [optional] <p> |
|
552 | - * The flags for the get operation. |
|
553 | - * </p> |
|
554 | - * @return mixed the value stored in the cache or <b>FALSE</b> otherwise. |
|
555 | - * The <b>Memcached::getResultCode</b> will return |
|
556 | - * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
|
557 | - */ |
|
558 | - public function getByKey ($server_key, $key, callable $cache_cb = null, $flags = 0) {} |
|
559 | - |
|
560 | - /** |
|
561 | - * (PECL memcached >= 0.1.0)<br/> |
|
562 | - * Retrieve multiple items |
|
563 | - * @link https://php.net/manual/en/memcached.getmulti.php |
|
564 | - * @param array $keys <p> |
|
565 | - * Array of keys to retrieve. |
|
566 | - * </p> |
|
567 | - * @param int $flags [optional] <p> |
|
568 | - * The flags for the get operation. |
|
569 | - * </p> |
|
570 | - * @return mixed the array of found items or <b>FALSE</b> on failure. |
|
571 | - * Use <b>Memcached::getResultCode</b> if necessary. |
|
572 | - */ |
|
573 | - public function getMulti (array $keys, $flags = null) {} |
|
574 | - |
|
575 | - /** |
|
576 | - * (PECL memcached >= 0.1.0)<br/> |
|
577 | - * Retrieve multiple items from a specific server |
|
578 | - * @link https://php.net/manual/en/memcached.getmultibykey.php |
|
579 | - * @param string $server_key <p> |
|
580 | - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
581 | - * </p> |
|
582 | - * @param array $keys <p> |
|
583 | - * Array of keys to retrieve. |
|
584 | - * </p> |
|
585 | - * @param int $flags [optional] <p> |
|
586 | - * The flags for the get operation. |
|
587 | - * </p> |
|
588 | - * @return array the array of found items or <b>FALSE</b> on failure. |
|
589 | - * Use <b>Memcached::getResultCode</b> if necessary. |
|
590 | - */ |
|
591 | - public function getMultiByKey ($server_key, array $keys, $flags = 0) {} |
|
592 | - |
|
593 | - /** |
|
594 | - * (PECL memcached >= 0.1.0)<br/> |
|
595 | - * Request multiple items |
|
596 | - * @link https://php.net/manual/en/memcached.getdelayed.php |
|
597 | - * @param array $keys <p> |
|
598 | - * Array of keys to request. |
|
599 | - * </p> |
|
600 | - * @param bool $with_cas [optional] <p> |
|
601 | - * Whether to request CAS token values also. |
|
602 | - * </p> |
|
603 | - * @param callable $value_cb [optional] <p> |
|
604 | - * The result callback or <b>NULL</b>. |
|
605 | - * </p> |
|
606 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
607 | - * Use <b>Memcached::getResultCode</b> if necessary. |
|
608 | - */ |
|
609 | - public function getDelayed (array $keys, $with_cas = null, callable $value_cb = null) {} |
|
610 | - |
|
611 | - /** |
|
612 | - * (PECL memcached >= 0.1.0)<br/> |
|
613 | - * Request multiple items from a specific server |
|
614 | - * @link https://php.net/manual/en/memcached.getdelayedbykey.php |
|
615 | - * @param string $server_key <p> |
|
616 | - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
617 | - * </p> |
|
618 | - * @param array $keys <p> |
|
619 | - * Array of keys to request. |
|
620 | - * </p> |
|
621 | - * @param bool $with_cas [optional] <p> |
|
622 | - * Whether to request CAS token values also. |
|
623 | - * </p> |
|
624 | - * @param callable $value_cb [optional] <p> |
|
625 | - * The result callback or <b>NULL</b>. |
|
626 | - * </p> |
|
627 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
628 | - * Use <b>Memcached::getResultCode</b> if necessary. |
|
629 | - */ |
|
630 | - public function getDelayedByKey ($server_key, array $keys, $with_cas = null, callable $value_cb = null) {} |
|
631 | - |
|
632 | - /** |
|
633 | - * (PECL memcached >= 0.1.0)<br/> |
|
634 | - * Fetch the next result |
|
635 | - * @link https://php.net/manual/en/memcached.fetch.php |
|
636 | - * @return array the next result or <b>FALSE</b> otherwise. |
|
637 | - * The <b>Memcached::getResultCode</b> will return |
|
638 | - * <b>Memcached::RES_END</b> if result set is exhausted. |
|
639 | - */ |
|
640 | - public function fetch () {} |
|
641 | - |
|
642 | - /** |
|
643 | - * (PECL memcached >= 0.1.0)<br/> |
|
644 | - * Fetch all the remaining results |
|
645 | - * @link https://php.net/manual/en/memcached.fetchall.php |
|
646 | - * @return array the results or <b>FALSE</b> on failure. |
|
647 | - * Use <b>Memcached::getResultCode</b> if necessary. |
|
648 | - */ |
|
649 | - public function fetchAll () {} |
|
650 | - |
|
651 | - /** |
|
652 | - * (PECL memcached >= 0.1.0)<br/> |
|
653 | - * Store an item |
|
654 | - * @link https://php.net/manual/en/memcached.set.php |
|
655 | - * @param string $key <p> |
|
656 | - * The key under which to store the value. |
|
657 | - * </p> |
|
658 | - * @param mixed $value <p> |
|
659 | - * The value to store. |
|
660 | - * </p> |
|
661 | - * @param int $expiration [optional] <p> |
|
662 | - * The expiration time, defaults to 0. See Expiration Times for more info. |
|
663 | - * </p> |
|
664 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
665 | - * Use <b>Memcached::getResultCode</b> if necessary. |
|
666 | - */ |
|
667 | - public function set ($key, $value, $expiration = 0, $udf_flags = 0) {} |
|
668 | - |
|
669 | - /** |
|
670 | - * (PECL memcached >= 0.1.0)<br/> |
|
671 | - * Store an item on a specific server |
|
672 | - * @link https://php.net/manual/en/memcached.setbykey.php |
|
673 | - * @param string $server_key <p> |
|
674 | - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
675 | - * </p> |
|
676 | - * @param string $key <p> |
|
677 | - * The key under which to store the value. |
|
678 | - * </p> |
|
679 | - * @param mixed $value <p> |
|
680 | - * The value to store. |
|
681 | - * </p> |
|
682 | - * @param int $expiration [optional] <p> |
|
683 | - * The expiration time, defaults to 0. See Expiration Times for more info. |
|
684 | - * </p> |
|
685 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
686 | - * Use <b>Memcached::getResultCode</b> if necessary. |
|
687 | - */ |
|
688 | - public function setByKey ($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
689 | - |
|
690 | - /** |
|
691 | - * (PECL memcached >= 2.0.0)<br/> |
|
692 | - * Set a new expiration on an item |
|
693 | - * @link https://php.net/manual/en/memcached.touch.php |
|
694 | - * @param string $key <p> |
|
695 | - * The key under which to store the value. |
|
696 | - * </p> |
|
697 | - * @param int $expiration <p> |
|
698 | - * The expiration time, defaults to 0. See Expiration Times for more info. |
|
699 | - * </p> |
|
700 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
701 | - * Use <b>Memcached::getResultCode</b> if necessary. |
|
702 | - */ |
|
703 | - public function touch ($key, $expiration = 0) {} |
|
704 | - |
|
705 | - /** |
|
706 | - * (PECL memcached >= 2.0.0)<br/> |
|
707 | - * Set a new expiration on an item on a specific server |
|
708 | - * @link https://php.net/manual/en/memcached.touchbykey.php |
|
709 | - * @param string $server_key <p> |
|
710 | - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
711 | - * </p> |
|
712 | - * @param string $key <p> |
|
713 | - * The key under which to store the value. |
|
714 | - * </p> |
|
715 | - * @param int $expiration <p> |
|
716 | - * The expiration time, defaults to 0. See Expiration Times for more info. |
|
717 | - * </p> |
|
718 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
719 | - * Use <b>Memcached::getResultCode</b> if necessary. |
|
720 | - */ |
|
721 | - public function touchByKey ($server_key, $key, $expiration) {} |
|
722 | - |
|
723 | - /** |
|
724 | - * (PECL memcached >= 0.1.0)<br/> |
|
725 | - * Store multiple items |
|
726 | - * @link https://php.net/manual/en/memcached.setmulti.php |
|
727 | - * @param array $items <p> |
|
728 | - * An array of key/value pairs to store on the server. |
|
729 | - * </p> |
|
730 | - * @param int $expiration [optional] <p> |
|
731 | - * The expiration time, defaults to 0. See Expiration Times for more info. |
|
732 | - * </p> |
|
733 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
734 | - * Use <b>Memcached::getResultCode</b> if necessary. |
|
735 | - */ |
|
736 | - public function setMulti (array $items, $expiration = 0, $udf_flags = 0) {} |
|
737 | - |
|
738 | - /** |
|
739 | - * (PECL memcached >= 0.1.0)<br/> |
|
740 | - * Store multiple items on a specific server |
|
741 | - * @link https://php.net/manual/en/memcached.setmultibykey.php |
|
742 | - * @param string $server_key <p> |
|
743 | - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
744 | - * </p> |
|
745 | - * @param array $items <p> |
|
746 | - * An array of key/value pairs to store on the server. |
|
747 | - * </p> |
|
748 | - * @param int $expiration [optional] <p> |
|
749 | - * The expiration time, defaults to 0. See Expiration Times for more info. |
|
750 | - * </p> |
|
751 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
752 | - * Use <b>Memcached::getResultCode</b> if necessary. |
|
753 | - */ |
|
754 | - public function setMultiByKey ($server_key, array $items, $expiration = 0, $udf_flags = 0) {} |
|
755 | - |
|
756 | - /** |
|
757 | - * (PECL memcached >= 0.1.0)<br/> |
|
758 | - * Compare and swap an item |
|
759 | - * @link https://php.net/manual/en/memcached.cas.php |
|
760 | - * @param float $cas_token <p> |
|
761 | - * Unique value associated with the existing item. Generated by memcache. |
|
762 | - * </p> |
|
763 | - * @param string $key <p> |
|
764 | - * The key under which to store the value. |
|
765 | - * </p> |
|
766 | - * @param mixed $value <p> |
|
767 | - * The value to store. |
|
768 | - * </p> |
|
769 | - * @param int $expiration [optional] <p> |
|
770 | - * The expiration time, defaults to 0. See Expiration Times for more info. |
|
771 | - * </p> |
|
772 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
773 | - * The <b>Memcached::getResultCode</b> will return |
|
774 | - * <b>Memcached::RES_DATA_EXISTS</b> if the item you are trying |
|
775 | - * to store has been modified since you last fetched it. |
|
776 | - */ |
|
777 | - public function cas ($cas_token, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
778 | - |
|
779 | - /** |
|
780 | - * (PECL memcached >= 0.1.0)<br/> |
|
781 | - * Compare and swap an item on a specific server |
|
782 | - * @link https://php.net/manual/en/memcached.casbykey.php |
|
783 | - * @param float $cas_token <p> |
|
784 | - * Unique value associated with the existing item. Generated by memcache. |
|
785 | - * </p> |
|
786 | - * @param string $server_key <p> |
|
787 | - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
788 | - * </p> |
|
789 | - * @param string $key <p> |
|
790 | - * The key under which to store the value. |
|
791 | - * </p> |
|
792 | - * @param mixed $value <p> |
|
793 | - * The value to store. |
|
794 | - * </p> |
|
795 | - * @param int $expiration [optional] <p> |
|
796 | - * The expiration time, defaults to 0. See Expiration Times for more info. |
|
797 | - * </p> |
|
798 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
799 | - * The <b>Memcached::getResultCode</b> will return |
|
800 | - * <b>Memcached::RES_DATA_EXISTS</b> if the item you are trying |
|
801 | - * to store has been modified since you last fetched it. |
|
802 | - */ |
|
803 | - public function casByKey ($cas_token, $server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
804 | - |
|
805 | - /** |
|
806 | - * (PECL memcached >= 0.1.0)<br/> |
|
807 | - * Add an item under a new key |
|
808 | - * @link https://php.net/manual/en/memcached.add.php |
|
809 | - * @param string $key <p> |
|
810 | - * The key under which to store the value. |
|
811 | - * </p> |
|
812 | - * @param mixed $value <p> |
|
813 | - * The value to store. |
|
814 | - * </p> |
|
815 | - * @param int $expiration [optional] <p> |
|
816 | - * The expiration time, defaults to 0. See Expiration Times for more info. |
|
817 | - * </p> |
|
818 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
819 | - * The <b>Memcached::getResultCode</b> will return |
|
820 | - * <b>Memcached::RES_NOTSTORED</b> if the key already exists. |
|
821 | - */ |
|
822 | - public function add ($key, $value, $expiration = 0, $udf_flags = 0) {} |
|
823 | - |
|
824 | - /** |
|
825 | - * (PECL memcached >= 0.1.0)<br/> |
|
826 | - * Add an item under a new key on a specific server |
|
827 | - * @link https://php.net/manual/en/memcached.addbykey.php |
|
828 | - * @param string $server_key <p> |
|
829 | - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
830 | - * </p> |
|
831 | - * @param string $key <p> |
|
832 | - * The key under which to store the value. |
|
833 | - * </p> |
|
834 | - * @param mixed $value <p> |
|
835 | - * The value to store. |
|
836 | - * </p> |
|
837 | - * @param int $expiration [optional] <p> |
|
838 | - * The expiration time, defaults to 0. See Expiration Times for more info. |
|
839 | - * </p> |
|
840 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
841 | - * The <b>Memcached::getResultCode</b> will return |
|
842 | - * <b>Memcached::RES_NOTSTORED</b> if the key already exists. |
|
843 | - */ |
|
844 | - public function addByKey ($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
845 | - |
|
846 | - /** |
|
847 | - * (PECL memcached >= 0.1.0)<br/> |
|
848 | - * Append data to an existing item |
|
849 | - * @link https://php.net/manual/en/memcached.append.php |
|
850 | - * @param string $key <p> |
|
851 | - * The key under which to store the value. |
|
852 | - * </p> |
|
853 | - * @param string $value <p> |
|
854 | - * The string to append. |
|
855 | - * </p> |
|
856 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
857 | - * The <b>Memcached::getResultCode</b> will return |
|
858 | - * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
|
859 | - */ |
|
860 | - public function append ($key, $value) {} |
|
861 | - |
|
862 | - /** |
|
863 | - * (PECL memcached >= 0.1.0)<br/> |
|
864 | - * Append data to an existing item on a specific server |
|
865 | - * @link https://php.net/manual/en/memcached.appendbykey.php |
|
866 | - * @param string $server_key <p> |
|
867 | - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
868 | - * </p> |
|
869 | - * @param string $key <p> |
|
870 | - * The key under which to store the value. |
|
871 | - * </p> |
|
872 | - * @param string $value <p> |
|
873 | - * The string to append. |
|
874 | - * </p> |
|
875 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
876 | - * The <b>Memcached::getResultCode</b> will return |
|
877 | - * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
|
878 | - */ |
|
879 | - public function appendByKey ($server_key, $key, $value) {} |
|
880 | - |
|
881 | - /** |
|
882 | - * (PECL memcached >= 0.1.0)<br/> |
|
883 | - * Prepend data to an existing item |
|
884 | - * @link https://php.net/manual/en/memcached.prepend.php |
|
885 | - * @param string $key <p> |
|
886 | - * The key of the item to prepend the data to. |
|
887 | - * </p> |
|
888 | - * @param string $value <p> |
|
889 | - * The string to prepend. |
|
890 | - * </p> |
|
891 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
892 | - * The <b>Memcached::getResultCode</b> will return |
|
893 | - * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
|
894 | - */ |
|
895 | - public function prepend ($key, $value) {} |
|
896 | - |
|
897 | - /** |
|
898 | - * (PECL memcached >= 0.1.0)<br/> |
|
899 | - * Prepend data to an existing item on a specific server |
|
900 | - * @link https://php.net/manual/en/memcached.prependbykey.php |
|
901 | - * @param string $server_key <p> |
|
902 | - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
903 | - * </p> |
|
904 | - * @param string $key <p> |
|
905 | - * The key of the item to prepend the data to. |
|
906 | - * </p> |
|
907 | - * @param string $value <p> |
|
908 | - * The string to prepend. |
|
909 | - * </p> |
|
910 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
911 | - * The <b>Memcached::getResultCode</b> will return |
|
912 | - * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
|
913 | - */ |
|
914 | - public function prependByKey ($server_key, $key, $value) {} |
|
915 | - |
|
916 | - /** |
|
917 | - * (PECL memcached >= 0.1.0)<br/> |
|
918 | - * Replace the item under an existing key |
|
919 | - * @link https://php.net/manual/en/memcached.replace.php |
|
920 | - * @param string $key <p> |
|
921 | - * The key under which to store the value. |
|
922 | - * </p> |
|
923 | - * @param mixed $value <p> |
|
924 | - * The value to store. |
|
925 | - * </p> |
|
926 | - * @param int $expiration [optional] <p> |
|
927 | - * The expiration time, defaults to 0. See Expiration Times for more info. |
|
928 | - * </p> |
|
929 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
930 | - * The <b>Memcached::getResultCode</b> will return |
|
931 | - * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
|
932 | - */ |
|
933 | - public function replace ($key, $value, $expiration = null, $udf_flags = 0) {} |
|
934 | - |
|
935 | - /** |
|
936 | - * (PECL memcached >= 0.1.0)<br/> |
|
937 | - * Replace the item under an existing key on a specific server |
|
938 | - * @link https://php.net/manual/en/memcached.replacebykey.php |
|
939 | - * @param string $server_key <p> |
|
940 | - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
941 | - * </p> |
|
942 | - * @param string $key <p> |
|
943 | - * The key under which to store the value. |
|
944 | - * </p> |
|
945 | - * @param mixed $value <p> |
|
946 | - * The value to store. |
|
947 | - * </p> |
|
948 | - * @param int $expiration [optional] <p> |
|
949 | - * The expiration time, defaults to 0. See Expiration Times for more info. |
|
950 | - * </p> |
|
951 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
952 | - * The <b>Memcached::getResultCode</b> will return |
|
953 | - * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
|
954 | - */ |
|
955 | - public function replaceByKey ($server_key, $key, $value, $expiration = null, $udf_flags = 0) {} |
|
956 | - |
|
957 | - /** |
|
958 | - * (PECL memcached >= 0.1.0)<br/> |
|
959 | - * Delete an item |
|
960 | - * @link https://php.net/manual/en/memcached.delete.php |
|
961 | - * @param string $key <p> |
|
962 | - * The key to be deleted. |
|
963 | - * </p> |
|
964 | - * @param int $time [optional] <p> |
|
965 | - * The amount of time the server will wait to delete the item. |
|
966 | - * </p> |
|
967 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
968 | - * The <b>Memcached::getResultCode</b> will return |
|
969 | - * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
|
970 | - */ |
|
971 | - public function delete ($key, $time = 0) {} |
|
972 | - |
|
973 | - /** |
|
974 | - * (PECL memcached >= 2.0.0)<br/> |
|
975 | - * Delete multiple items |
|
976 | - * @link https://php.net/manual/en/memcached.deletemulti.php |
|
977 | - * @param array $keys <p> |
|
978 | - * The keys to be deleted. |
|
979 | - * </p> |
|
980 | - * @param int $time [optional] <p> |
|
981 | - * The amount of time the server will wait to delete the items. |
|
982 | - * </p> |
|
983 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
984 | - * The <b>Memcached::getResultCode</b> will return |
|
985 | - * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
|
986 | - */ |
|
987 | - public function deleteMulti (array $keys, $time = 0) {} |
|
988 | - |
|
989 | - /** |
|
990 | - * (PECL memcached >= 0.1.0)<br/> |
|
991 | - * Delete an item from a specific server |
|
992 | - * @link https://php.net/manual/en/memcached.deletebykey.php |
|
993 | - * @param string $server_key <p> |
|
994 | - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
995 | - * </p> |
|
996 | - * @param string $key <p> |
|
997 | - * The key to be deleted. |
|
998 | - * </p> |
|
999 | - * @param int $time [optional] <p> |
|
1000 | - * The amount of time the server will wait to delete the item. |
|
1001 | - * </p> |
|
1002 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1003 | - * The <b>Memcached::getResultCode</b> will return |
|
1004 | - * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
|
1005 | - */ |
|
1006 | - public function deleteByKey ($server_key, $key, $time = 0) {} |
|
1007 | - |
|
1008 | - /** |
|
1009 | - * (PECL memcached >= 2.0.0)<br/> |
|
1010 | - * Delete multiple items from a specific server |
|
1011 | - * @link https://php.net/manual/en/memcached.deletemultibykey.php |
|
1012 | - * @param string $server_key <p> |
|
1013 | - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
1014 | - * </p> |
|
1015 | - * @param array $keys <p> |
|
1016 | - * The keys to be deleted. |
|
1017 | - * </p> |
|
1018 | - * @param int $time [optional] <p> |
|
1019 | - * The amount of time the server will wait to delete the items. |
|
1020 | - * </p> |
|
1021 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1022 | - * The <b>Memcached::getResultCode</b> will return |
|
1023 | - * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
|
1024 | - */ |
|
1025 | - public function deleteMultiByKey ($server_key, array $keys, $time = 0) {} |
|
1026 | - |
|
1027 | - /** |
|
1028 | - * (PECL memcached >= 0.1.0)<br/> |
|
1029 | - * Increment numeric item's value |
|
1030 | - * @link https://php.net/manual/en/memcached.increment.php |
|
1031 | - * @param string $key <p> |
|
1032 | - * The key of the item to increment. |
|
1033 | - * </p> |
|
1034 | - * @param int $offset [optional] <p> |
|
1035 | - * The amount by which to increment the item's value. |
|
1036 | - * </p> |
|
1037 | - * @param int $initial_value [optional] <p> |
|
1038 | - * The value to set the item to if it doesn't currently exist. |
|
1039 | - * </p> |
|
1040 | - * @param int $expiry [optional] <p> |
|
1041 | - * The expiry time to set on the item. |
|
1042 | - * </p> |
|
1043 | - * @return int new item's value on success or <b>FALSE</b> on failure. |
|
1044 | - */ |
|
1045 | - public function increment ($key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
1046 | - |
|
1047 | - /** |
|
1048 | - * (PECL memcached >= 0.1.0)<br/> |
|
1049 | - * Decrement numeric item's value |
|
1050 | - * @link https://php.net/manual/en/memcached.decrement.php |
|
1051 | - * @param string $key <p> |
|
1052 | - * The key of the item to decrement. |
|
1053 | - * </p> |
|
1054 | - * @param int $offset [optional] <p> |
|
1055 | - * The amount by which to decrement the item's value. |
|
1056 | - * </p> |
|
1057 | - * @param int $initial_value [optional] <p> |
|
1058 | - * The value to set the item to if it doesn't currently exist. |
|
1059 | - * </p> |
|
1060 | - * @param int $expiry [optional] <p> |
|
1061 | - * The expiry time to set on the item. |
|
1062 | - * </p> |
|
1063 | - * @return int item's new value on success or <b>FALSE</b> on failure. |
|
1064 | - */ |
|
1065 | - public function decrement ($key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
1066 | - |
|
1067 | - /** |
|
1068 | - * (PECL memcached >= 2.0.0)<br/> |
|
1069 | - * Increment numeric item's value, stored on a specific server |
|
1070 | - * @link https://php.net/manual/en/memcached.incrementbykey.php |
|
1071 | - * @param string $server_key <p> |
|
1072 | - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
1073 | - * </p> |
|
1074 | - * @param string $key <p> |
|
1075 | - * The key of the item to increment. |
|
1076 | - * </p> |
|
1077 | - * @param int $offset [optional] <p> |
|
1078 | - * The amount by which to increment the item's value. |
|
1079 | - * </p> |
|
1080 | - * @param int $initial_value [optional] <p> |
|
1081 | - * The value to set the item to if it doesn't currently exist. |
|
1082 | - * </p> |
|
1083 | - * @param int $expiry [optional] <p> |
|
1084 | - * The expiry time to set on the item. |
|
1085 | - * </p> |
|
1086 | - * @return int new item's value on success or <b>FALSE</b> on failure. |
|
1087 | - */ |
|
1088 | - public function incrementByKey ($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
1089 | - |
|
1090 | - /** |
|
1091 | - * (PECL memcached >= 2.0.0)<br/> |
|
1092 | - * Decrement numeric item's value, stored on a specific server |
|
1093 | - * @link https://php.net/manual/en/memcached.decrementbykey.php |
|
1094 | - * @param string $server_key <p> |
|
1095 | - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
1096 | - * </p> |
|
1097 | - * @param string $key <p> |
|
1098 | - * The key of the item to decrement. |
|
1099 | - * </p> |
|
1100 | - * @param int $offset [optional] <p> |
|
1101 | - * The amount by which to decrement the item's value. |
|
1102 | - * </p> |
|
1103 | - * @param int $initial_value [optional] <p> |
|
1104 | - * The value to set the item to if it doesn't currently exist. |
|
1105 | - * </p> |
|
1106 | - * @param int $expiry [optional] <p> |
|
1107 | - * The expiry time to set on the item. |
|
1108 | - * </p> |
|
1109 | - * @return int item's new value on success or <b>FALSE</b> on failure. |
|
1110 | - */ |
|
1111 | - public function decrementByKey ($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
1112 | - |
|
1113 | - /** |
|
1114 | - * (PECL memcached >= 0.1.0)<br/> |
|
1115 | - * Add a server to the server pool |
|
1116 | - * @link https://php.net/manual/en/memcached.addserver.php |
|
1117 | - * @param string $host <p> |
|
1118 | - * The hostname of the memcache server. If the hostname is invalid, data-related |
|
1119 | - * operations will set |
|
1120 | - * <b>Memcached::RES_HOST_LOOKUP_FAILURE</b> result code. |
|
1121 | - * </p> |
|
1122 | - * @param int $port <p> |
|
1123 | - * The port on which memcache is running. Usually, this is |
|
1124 | - * 11211. |
|
1125 | - * </p> |
|
1126 | - * @param int $weight [optional] <p> |
|
1127 | - * The weight of the server relative to the total weight of all the |
|
1128 | - * servers in the pool. This controls the probability of the server being |
|
1129 | - * selected for operations. This is used only with consistent distribution |
|
1130 | - * option and usually corresponds to the amount of memory available to |
|
1131 | - * memcache on that server. |
|
1132 | - * </p> |
|
1133 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1134 | - */ |
|
1135 | - public function addServer ($host, $port, $weight = 0) {} |
|
1136 | - |
|
1137 | - /** |
|
1138 | - * (PECL memcached >= 0.1.1)<br/> |
|
1139 | - * Add multiple servers to the server pool |
|
1140 | - * @link https://php.net/manual/en/memcached.addservers.php |
|
1141 | - * @param array $servers |
|
1142 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1143 | - */ |
|
1144 | - public function addServers (array $servers) {} |
|
1145 | - |
|
1146 | - /** |
|
1147 | - * (PECL memcached >= 0.1.0)<br/> |
|
1148 | - * Get the list of the servers in the pool |
|
1149 | - * @link https://php.net/manual/en/memcached.getserverlist.php |
|
1150 | - * @return array The list of all servers in the server pool. |
|
1151 | - */ |
|
1152 | - public function getServerList () {} |
|
1153 | - |
|
1154 | - /** |
|
1155 | - * (PECL memcached >= 0.1.0)<br/> |
|
1156 | - * Map a key to a server |
|
1157 | - * @link https://php.net/manual/en/memcached.getserverbykey.php |
|
1158 | - * @param string $server_key <p> |
|
1159 | - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
1160 | - * </p> |
|
1161 | - * @return array an array containing three keys of host, |
|
1162 | - * port, and weight on success or <b>FALSE</b> |
|
1163 | - * on failure. |
|
1164 | - * Use <b>Memcached::getResultCode</b> if necessary. |
|
1165 | - */ |
|
1166 | - public function getServerByKey ($server_key) {} |
|
1167 | - |
|
1168 | - /** |
|
1169 | - * (PECL memcached >= 2.0.0)<br/> |
|
1170 | - * Clears all servers from the server list |
|
1171 | - * @link https://php.net/manual/en/memcached.resetserverlist.php |
|
1172 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1173 | - */ |
|
1174 | - public function resetServerList () {} |
|
1175 | - |
|
1176 | - /** |
|
1177 | - * (PECL memcached >= 2.0.0)<br/> |
|
1178 | - * Close any open connections |
|
1179 | - * @link https://php.net/manual/en/memcached.quit.php |
|
1180 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1181 | - */ |
|
1182 | - public function quit () {} |
|
1183 | - |
|
1184 | - /** |
|
1185 | - * (PECL memcached >= 0.1.0)<br/> |
|
1186 | - * Get server pool statistics |
|
1187 | - * @link https://php.net/manual/en/memcached.getstats.php |
|
1188 | - * @param string $type |
|
1189 | - * @return array Array of server statistics, one entry per server. |
|
1190 | - */ |
|
1191 | - public function getStats ($type = null) {} |
|
1192 | - |
|
1193 | - /** |
|
1194 | - * (PECL memcached >= 0.1.5)<br/> |
|
1195 | - * Get server pool version info |
|
1196 | - * @link https://php.net/manual/en/memcached.getversion.php |
|
1197 | - * @return array Array of server versions, one entry per server. |
|
1198 | - */ |
|
1199 | - public function getVersion () {} |
|
1200 | - |
|
1201 | - /** |
|
1202 | - * (PECL memcached >= 2.0.0)<br/> |
|
1203 | - * Gets the keys stored on all the servers |
|
1204 | - * @link https://php.net/manual/en/memcached.getallkeys.php |
|
1205 | - * @return array the keys stored on all the servers on success or <b>FALSE</b> on failure. |
|
1206 | - */ |
|
1207 | - public function getAllKeys () {} |
|
1208 | - |
|
1209 | - /** |
|
1210 | - * (PECL memcached >= 0.1.0)<br/> |
|
1211 | - * Invalidate all items in the cache |
|
1212 | - * @link https://php.net/manual/en/memcached.flush.php |
|
1213 | - * @param int $delay [optional] <p> |
|
1214 | - * Numer of seconds to wait before invalidating the items. |
|
1215 | - * </p> |
|
1216 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1217 | - * Use <b>Memcached::getResultCode</b> if necessary. |
|
1218 | - */ |
|
1219 | - public function flush ($delay = 0) {} |
|
1220 | - |
|
1221 | - /** |
|
1222 | - * (PECL memcached >= 0.1.0)<br/> |
|
1223 | - * Retrieve a Memcached option value |
|
1224 | - * @link https://php.net/manual/en/memcached.getoption.php |
|
1225 | - * @param int $option <p> |
|
1226 | - * One of the Memcached::OPT_* constants. |
|
1227 | - * </p> |
|
1228 | - * @return mixed the value of the requested option, or <b>FALSE</b> on |
|
1229 | - * error. |
|
1230 | - */ |
|
1231 | - public function getOption ($option) {} |
|
1232 | - |
|
1233 | - /** |
|
1234 | - * (PECL memcached >= 0.1.0)<br/> |
|
1235 | - * Set a Memcached option |
|
1236 | - * @link https://php.net/manual/en/memcached.setoption.php |
|
1237 | - * @param int $option |
|
1238 | - * @param mixed $value |
|
1239 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1240 | - */ |
|
1241 | - public function setOption ($option, $value) {} |
|
1242 | - |
|
1243 | - /** |
|
1244 | - * (PECL memcached >= 2.0.0)<br/> |
|
1245 | - * Set Memcached options |
|
1246 | - * @link https://php.net/manual/en/memcached.setoptions.php |
|
1247 | - * @param array $options <p> |
|
1248 | - * An associative array of options where the key is the option to set and |
|
1249 | - * the value is the new value for the option. |
|
1250 | - * </p> |
|
1251 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1252 | - */ |
|
1253 | - public function setOptions (array $options) {} |
|
448 | + /** |
|
449 | + * <p>Failed to create network socket.</p> |
|
450 | + * @link https://php.net/manual/en/memcached.constants.php |
|
451 | + */ |
|
452 | + const RES_CONNECTION_SOCKET_CREATE_FAILURE = 11; |
|
453 | + |
|
454 | + /** |
|
455 | + * <p>Payload failure: could not compress/decompress or serialize/unserialize the value.</p> |
|
456 | + * @link https://php.net/manual/en/memcached.constants.php |
|
457 | + */ |
|
458 | + const RES_PAYLOAD_FAILURE = -1001; |
|
459 | + |
|
460 | + /** |
|
461 | + * <p>The default PHP serializer.</p> |
|
462 | + * @link https://php.net/manual/en/memcached.constants.php |
|
463 | + */ |
|
464 | + const SERIALIZER_PHP = 1; |
|
465 | + |
|
466 | + /** |
|
467 | + * <p>The igbinary serializer. |
|
468 | + * Instead of textual representation it stores PHP data structures in a |
|
469 | + * compact binary form, resulting in space and time gains.</p> |
|
470 | + * @link https://php.net/manual/en/memcached.constants.php |
|
471 | + */ |
|
472 | + const SERIALIZER_IGBINARY = 2; |
|
473 | + |
|
474 | + /** |
|
475 | + * <p>The JSON serializer. Requires PHP 5.2.10+.</p> |
|
476 | + * @link https://php.net/manual/en/memcached.constants.php |
|
477 | + */ |
|
478 | + const SERIALIZER_JSON = 3; |
|
479 | + const SERIALIZER_JSON_ARRAY = 4; |
|
480 | + const COMPRESSION_FASTLZ = 2; |
|
481 | + const COMPRESSION_ZLIB = 1; |
|
482 | + |
|
483 | + /** |
|
484 | + * <p>A flag for <b>Memcached::getMulti</b> and |
|
485 | + * <b>Memcached::getMultiByKey</b> to ensure that the keys are |
|
486 | + * returned in the same order as they were requested in. Non-existing keys |
|
487 | + * get a default value of NULL.</p> |
|
488 | + * @link https://php.net/manual/en/memcached.constants.php |
|
489 | + */ |
|
490 | + const GET_PRESERVE_ORDER = 1; |
|
491 | + const GET_ERROR_RETURN_VALUE = false; |
|
492 | + |
|
493 | + |
|
494 | + /** |
|
495 | + * (PECL memcached >= 0.1.0)<br/> |
|
496 | + * Create a Memcached instance |
|
497 | + * @link https://php.net/manual/en/memcached.construct.php |
|
498 | + * @param $persistent_id [optional] |
|
499 | + * @param $callback [optional] |
|
500 | + */ |
|
501 | + public function __construct ($persistent_id = '', $on_new_object_cb = null) {} |
|
502 | + |
|
503 | + /** |
|
504 | + * (PECL memcached >= 0.1.0)<br/> |
|
505 | + * Return the result code of the last operation |
|
506 | + * @link https://php.net/manual/en/memcached.getresultcode.php |
|
507 | + * @return int Result code of the last Memcached operation. |
|
508 | + */ |
|
509 | + public function getResultCode () {} |
|
510 | + |
|
511 | + /** |
|
512 | + * (PECL memcached >= 1.0.0)<br/> |
|
513 | + * Return the message describing the result of the last operation |
|
514 | + * @link https://php.net/manual/en/memcached.getresultmessage.php |
|
515 | + * @return string Message describing the result of the last Memcached operation. |
|
516 | + */ |
|
517 | + public function getResultMessage () {} |
|
518 | + |
|
519 | + /** |
|
520 | + * (PECL memcached >= 0.1.0)<br/> |
|
521 | + * Retrieve an item |
|
522 | + * @link https://php.net/manual/en/memcached.get.php |
|
523 | + * @param string $key <p> |
|
524 | + * The key of the item to retrieve. |
|
525 | + * </p> |
|
526 | + * @param callable $cache_cb [optional] <p> |
|
527 | + * Read-through caching callback or <b>NULL</b>. |
|
528 | + * </p> |
|
529 | + * @param int $flags [optional] <p> |
|
530 | + * The flags for the get operation. |
|
531 | + * </p> |
|
532 | + * @return mixed the value stored in the cache or <b>FALSE</b> otherwise. |
|
533 | + * The <b>Memcached::getResultCode</b> will return |
|
534 | + * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
|
535 | + */ |
|
536 | + public function get ($key, callable $cache_cb = null, $flags = 0) {} |
|
537 | + |
|
538 | + /** |
|
539 | + * (PECL memcached >= 0.1.0)<br/> |
|
540 | + * Retrieve an item from a specific server |
|
541 | + * @link https://php.net/manual/en/memcached.getbykey.php |
|
542 | + * @param string $server_key <p> |
|
543 | + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
544 | + * </p> |
|
545 | + * @param string $key <p> |
|
546 | + * The key of the item to fetch. |
|
547 | + * </p> |
|
548 | + * @param callable $cache_cb [optional] <p> |
|
549 | + * Read-through caching callback or <b>NULL</b> |
|
550 | + * </p> |
|
551 | + * @param int $flags [optional] <p> |
|
552 | + * The flags for the get operation. |
|
553 | + * </p> |
|
554 | + * @return mixed the value stored in the cache or <b>FALSE</b> otherwise. |
|
555 | + * The <b>Memcached::getResultCode</b> will return |
|
556 | + * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
|
557 | + */ |
|
558 | + public function getByKey ($server_key, $key, callable $cache_cb = null, $flags = 0) {} |
|
559 | + |
|
560 | + /** |
|
561 | + * (PECL memcached >= 0.1.0)<br/> |
|
562 | + * Retrieve multiple items |
|
563 | + * @link https://php.net/manual/en/memcached.getmulti.php |
|
564 | + * @param array $keys <p> |
|
565 | + * Array of keys to retrieve. |
|
566 | + * </p> |
|
567 | + * @param int $flags [optional] <p> |
|
568 | + * The flags for the get operation. |
|
569 | + * </p> |
|
570 | + * @return mixed the array of found items or <b>FALSE</b> on failure. |
|
571 | + * Use <b>Memcached::getResultCode</b> if necessary. |
|
572 | + */ |
|
573 | + public function getMulti (array $keys, $flags = null) {} |
|
574 | + |
|
575 | + /** |
|
576 | + * (PECL memcached >= 0.1.0)<br/> |
|
577 | + * Retrieve multiple items from a specific server |
|
578 | + * @link https://php.net/manual/en/memcached.getmultibykey.php |
|
579 | + * @param string $server_key <p> |
|
580 | + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
581 | + * </p> |
|
582 | + * @param array $keys <p> |
|
583 | + * Array of keys to retrieve. |
|
584 | + * </p> |
|
585 | + * @param int $flags [optional] <p> |
|
586 | + * The flags for the get operation. |
|
587 | + * </p> |
|
588 | + * @return array the array of found items or <b>FALSE</b> on failure. |
|
589 | + * Use <b>Memcached::getResultCode</b> if necessary. |
|
590 | + */ |
|
591 | + public function getMultiByKey ($server_key, array $keys, $flags = 0) {} |
|
592 | + |
|
593 | + /** |
|
594 | + * (PECL memcached >= 0.1.0)<br/> |
|
595 | + * Request multiple items |
|
596 | + * @link https://php.net/manual/en/memcached.getdelayed.php |
|
597 | + * @param array $keys <p> |
|
598 | + * Array of keys to request. |
|
599 | + * </p> |
|
600 | + * @param bool $with_cas [optional] <p> |
|
601 | + * Whether to request CAS token values also. |
|
602 | + * </p> |
|
603 | + * @param callable $value_cb [optional] <p> |
|
604 | + * The result callback or <b>NULL</b>. |
|
605 | + * </p> |
|
606 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
607 | + * Use <b>Memcached::getResultCode</b> if necessary. |
|
608 | + */ |
|
609 | + public function getDelayed (array $keys, $with_cas = null, callable $value_cb = null) {} |
|
610 | + |
|
611 | + /** |
|
612 | + * (PECL memcached >= 0.1.0)<br/> |
|
613 | + * Request multiple items from a specific server |
|
614 | + * @link https://php.net/manual/en/memcached.getdelayedbykey.php |
|
615 | + * @param string $server_key <p> |
|
616 | + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
617 | + * </p> |
|
618 | + * @param array $keys <p> |
|
619 | + * Array of keys to request. |
|
620 | + * </p> |
|
621 | + * @param bool $with_cas [optional] <p> |
|
622 | + * Whether to request CAS token values also. |
|
623 | + * </p> |
|
624 | + * @param callable $value_cb [optional] <p> |
|
625 | + * The result callback or <b>NULL</b>. |
|
626 | + * </p> |
|
627 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
628 | + * Use <b>Memcached::getResultCode</b> if necessary. |
|
629 | + */ |
|
630 | + public function getDelayedByKey ($server_key, array $keys, $with_cas = null, callable $value_cb = null) {} |
|
631 | + |
|
632 | + /** |
|
633 | + * (PECL memcached >= 0.1.0)<br/> |
|
634 | + * Fetch the next result |
|
635 | + * @link https://php.net/manual/en/memcached.fetch.php |
|
636 | + * @return array the next result or <b>FALSE</b> otherwise. |
|
637 | + * The <b>Memcached::getResultCode</b> will return |
|
638 | + * <b>Memcached::RES_END</b> if result set is exhausted. |
|
639 | + */ |
|
640 | + public function fetch () {} |
|
641 | + |
|
642 | + /** |
|
643 | + * (PECL memcached >= 0.1.0)<br/> |
|
644 | + * Fetch all the remaining results |
|
645 | + * @link https://php.net/manual/en/memcached.fetchall.php |
|
646 | + * @return array the results or <b>FALSE</b> on failure. |
|
647 | + * Use <b>Memcached::getResultCode</b> if necessary. |
|
648 | + */ |
|
649 | + public function fetchAll () {} |
|
650 | + |
|
651 | + /** |
|
652 | + * (PECL memcached >= 0.1.0)<br/> |
|
653 | + * Store an item |
|
654 | + * @link https://php.net/manual/en/memcached.set.php |
|
655 | + * @param string $key <p> |
|
656 | + * The key under which to store the value. |
|
657 | + * </p> |
|
658 | + * @param mixed $value <p> |
|
659 | + * The value to store. |
|
660 | + * </p> |
|
661 | + * @param int $expiration [optional] <p> |
|
662 | + * The expiration time, defaults to 0. See Expiration Times for more info. |
|
663 | + * </p> |
|
664 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
665 | + * Use <b>Memcached::getResultCode</b> if necessary. |
|
666 | + */ |
|
667 | + public function set ($key, $value, $expiration = 0, $udf_flags = 0) {} |
|
668 | + |
|
669 | + /** |
|
670 | + * (PECL memcached >= 0.1.0)<br/> |
|
671 | + * Store an item on a specific server |
|
672 | + * @link https://php.net/manual/en/memcached.setbykey.php |
|
673 | + * @param string $server_key <p> |
|
674 | + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
675 | + * </p> |
|
676 | + * @param string $key <p> |
|
677 | + * The key under which to store the value. |
|
678 | + * </p> |
|
679 | + * @param mixed $value <p> |
|
680 | + * The value to store. |
|
681 | + * </p> |
|
682 | + * @param int $expiration [optional] <p> |
|
683 | + * The expiration time, defaults to 0. See Expiration Times for more info. |
|
684 | + * </p> |
|
685 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
686 | + * Use <b>Memcached::getResultCode</b> if necessary. |
|
687 | + */ |
|
688 | + public function setByKey ($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
689 | + |
|
690 | + /** |
|
691 | + * (PECL memcached >= 2.0.0)<br/> |
|
692 | + * Set a new expiration on an item |
|
693 | + * @link https://php.net/manual/en/memcached.touch.php |
|
694 | + * @param string $key <p> |
|
695 | + * The key under which to store the value. |
|
696 | + * </p> |
|
697 | + * @param int $expiration <p> |
|
698 | + * The expiration time, defaults to 0. See Expiration Times for more info. |
|
699 | + * </p> |
|
700 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
701 | + * Use <b>Memcached::getResultCode</b> if necessary. |
|
702 | + */ |
|
703 | + public function touch ($key, $expiration = 0) {} |
|
704 | + |
|
705 | + /** |
|
706 | + * (PECL memcached >= 2.0.0)<br/> |
|
707 | + * Set a new expiration on an item on a specific server |
|
708 | + * @link https://php.net/manual/en/memcached.touchbykey.php |
|
709 | + * @param string $server_key <p> |
|
710 | + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
711 | + * </p> |
|
712 | + * @param string $key <p> |
|
713 | + * The key under which to store the value. |
|
714 | + * </p> |
|
715 | + * @param int $expiration <p> |
|
716 | + * The expiration time, defaults to 0. See Expiration Times for more info. |
|
717 | + * </p> |
|
718 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
719 | + * Use <b>Memcached::getResultCode</b> if necessary. |
|
720 | + */ |
|
721 | + public function touchByKey ($server_key, $key, $expiration) {} |
|
722 | + |
|
723 | + /** |
|
724 | + * (PECL memcached >= 0.1.0)<br/> |
|
725 | + * Store multiple items |
|
726 | + * @link https://php.net/manual/en/memcached.setmulti.php |
|
727 | + * @param array $items <p> |
|
728 | + * An array of key/value pairs to store on the server. |
|
729 | + * </p> |
|
730 | + * @param int $expiration [optional] <p> |
|
731 | + * The expiration time, defaults to 0. See Expiration Times for more info. |
|
732 | + * </p> |
|
733 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
734 | + * Use <b>Memcached::getResultCode</b> if necessary. |
|
735 | + */ |
|
736 | + public function setMulti (array $items, $expiration = 0, $udf_flags = 0) {} |
|
737 | + |
|
738 | + /** |
|
739 | + * (PECL memcached >= 0.1.0)<br/> |
|
740 | + * Store multiple items on a specific server |
|
741 | + * @link https://php.net/manual/en/memcached.setmultibykey.php |
|
742 | + * @param string $server_key <p> |
|
743 | + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
744 | + * </p> |
|
745 | + * @param array $items <p> |
|
746 | + * An array of key/value pairs to store on the server. |
|
747 | + * </p> |
|
748 | + * @param int $expiration [optional] <p> |
|
749 | + * The expiration time, defaults to 0. See Expiration Times for more info. |
|
750 | + * </p> |
|
751 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
752 | + * Use <b>Memcached::getResultCode</b> if necessary. |
|
753 | + */ |
|
754 | + public function setMultiByKey ($server_key, array $items, $expiration = 0, $udf_flags = 0) {} |
|
755 | + |
|
756 | + /** |
|
757 | + * (PECL memcached >= 0.1.0)<br/> |
|
758 | + * Compare and swap an item |
|
759 | + * @link https://php.net/manual/en/memcached.cas.php |
|
760 | + * @param float $cas_token <p> |
|
761 | + * Unique value associated with the existing item. Generated by memcache. |
|
762 | + * </p> |
|
763 | + * @param string $key <p> |
|
764 | + * The key under which to store the value. |
|
765 | + * </p> |
|
766 | + * @param mixed $value <p> |
|
767 | + * The value to store. |
|
768 | + * </p> |
|
769 | + * @param int $expiration [optional] <p> |
|
770 | + * The expiration time, defaults to 0. See Expiration Times for more info. |
|
771 | + * </p> |
|
772 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
773 | + * The <b>Memcached::getResultCode</b> will return |
|
774 | + * <b>Memcached::RES_DATA_EXISTS</b> if the item you are trying |
|
775 | + * to store has been modified since you last fetched it. |
|
776 | + */ |
|
777 | + public function cas ($cas_token, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
778 | + |
|
779 | + /** |
|
780 | + * (PECL memcached >= 0.1.0)<br/> |
|
781 | + * Compare and swap an item on a specific server |
|
782 | + * @link https://php.net/manual/en/memcached.casbykey.php |
|
783 | + * @param float $cas_token <p> |
|
784 | + * Unique value associated with the existing item. Generated by memcache. |
|
785 | + * </p> |
|
786 | + * @param string $server_key <p> |
|
787 | + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
788 | + * </p> |
|
789 | + * @param string $key <p> |
|
790 | + * The key under which to store the value. |
|
791 | + * </p> |
|
792 | + * @param mixed $value <p> |
|
793 | + * The value to store. |
|
794 | + * </p> |
|
795 | + * @param int $expiration [optional] <p> |
|
796 | + * The expiration time, defaults to 0. See Expiration Times for more info. |
|
797 | + * </p> |
|
798 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
799 | + * The <b>Memcached::getResultCode</b> will return |
|
800 | + * <b>Memcached::RES_DATA_EXISTS</b> if the item you are trying |
|
801 | + * to store has been modified since you last fetched it. |
|
802 | + */ |
|
803 | + public function casByKey ($cas_token, $server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
804 | + |
|
805 | + /** |
|
806 | + * (PECL memcached >= 0.1.0)<br/> |
|
807 | + * Add an item under a new key |
|
808 | + * @link https://php.net/manual/en/memcached.add.php |
|
809 | + * @param string $key <p> |
|
810 | + * The key under which to store the value. |
|
811 | + * </p> |
|
812 | + * @param mixed $value <p> |
|
813 | + * The value to store. |
|
814 | + * </p> |
|
815 | + * @param int $expiration [optional] <p> |
|
816 | + * The expiration time, defaults to 0. See Expiration Times for more info. |
|
817 | + * </p> |
|
818 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
819 | + * The <b>Memcached::getResultCode</b> will return |
|
820 | + * <b>Memcached::RES_NOTSTORED</b> if the key already exists. |
|
821 | + */ |
|
822 | + public function add ($key, $value, $expiration = 0, $udf_flags = 0) {} |
|
823 | + |
|
824 | + /** |
|
825 | + * (PECL memcached >= 0.1.0)<br/> |
|
826 | + * Add an item under a new key on a specific server |
|
827 | + * @link https://php.net/manual/en/memcached.addbykey.php |
|
828 | + * @param string $server_key <p> |
|
829 | + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
830 | + * </p> |
|
831 | + * @param string $key <p> |
|
832 | + * The key under which to store the value. |
|
833 | + * </p> |
|
834 | + * @param mixed $value <p> |
|
835 | + * The value to store. |
|
836 | + * </p> |
|
837 | + * @param int $expiration [optional] <p> |
|
838 | + * The expiration time, defaults to 0. See Expiration Times for more info. |
|
839 | + * </p> |
|
840 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
841 | + * The <b>Memcached::getResultCode</b> will return |
|
842 | + * <b>Memcached::RES_NOTSTORED</b> if the key already exists. |
|
843 | + */ |
|
844 | + public function addByKey ($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
845 | + |
|
846 | + /** |
|
847 | + * (PECL memcached >= 0.1.0)<br/> |
|
848 | + * Append data to an existing item |
|
849 | + * @link https://php.net/manual/en/memcached.append.php |
|
850 | + * @param string $key <p> |
|
851 | + * The key under which to store the value. |
|
852 | + * </p> |
|
853 | + * @param string $value <p> |
|
854 | + * The string to append. |
|
855 | + * </p> |
|
856 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
857 | + * The <b>Memcached::getResultCode</b> will return |
|
858 | + * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
|
859 | + */ |
|
860 | + public function append ($key, $value) {} |
|
861 | + |
|
862 | + /** |
|
863 | + * (PECL memcached >= 0.1.0)<br/> |
|
864 | + * Append data to an existing item on a specific server |
|
865 | + * @link https://php.net/manual/en/memcached.appendbykey.php |
|
866 | + * @param string $server_key <p> |
|
867 | + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
868 | + * </p> |
|
869 | + * @param string $key <p> |
|
870 | + * The key under which to store the value. |
|
871 | + * </p> |
|
872 | + * @param string $value <p> |
|
873 | + * The string to append. |
|
874 | + * </p> |
|
875 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
876 | + * The <b>Memcached::getResultCode</b> will return |
|
877 | + * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
|
878 | + */ |
|
879 | + public function appendByKey ($server_key, $key, $value) {} |
|
880 | + |
|
881 | + /** |
|
882 | + * (PECL memcached >= 0.1.0)<br/> |
|
883 | + * Prepend data to an existing item |
|
884 | + * @link https://php.net/manual/en/memcached.prepend.php |
|
885 | + * @param string $key <p> |
|
886 | + * The key of the item to prepend the data to. |
|
887 | + * </p> |
|
888 | + * @param string $value <p> |
|
889 | + * The string to prepend. |
|
890 | + * </p> |
|
891 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
892 | + * The <b>Memcached::getResultCode</b> will return |
|
893 | + * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
|
894 | + */ |
|
895 | + public function prepend ($key, $value) {} |
|
896 | + |
|
897 | + /** |
|
898 | + * (PECL memcached >= 0.1.0)<br/> |
|
899 | + * Prepend data to an existing item on a specific server |
|
900 | + * @link https://php.net/manual/en/memcached.prependbykey.php |
|
901 | + * @param string $server_key <p> |
|
902 | + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
903 | + * </p> |
|
904 | + * @param string $key <p> |
|
905 | + * The key of the item to prepend the data to. |
|
906 | + * </p> |
|
907 | + * @param string $value <p> |
|
908 | + * The string to prepend. |
|
909 | + * </p> |
|
910 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
911 | + * The <b>Memcached::getResultCode</b> will return |
|
912 | + * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
|
913 | + */ |
|
914 | + public function prependByKey ($server_key, $key, $value) {} |
|
915 | + |
|
916 | + /** |
|
917 | + * (PECL memcached >= 0.1.0)<br/> |
|
918 | + * Replace the item under an existing key |
|
919 | + * @link https://php.net/manual/en/memcached.replace.php |
|
920 | + * @param string $key <p> |
|
921 | + * The key under which to store the value. |
|
922 | + * </p> |
|
923 | + * @param mixed $value <p> |
|
924 | + * The value to store. |
|
925 | + * </p> |
|
926 | + * @param int $expiration [optional] <p> |
|
927 | + * The expiration time, defaults to 0. See Expiration Times for more info. |
|
928 | + * </p> |
|
929 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
930 | + * The <b>Memcached::getResultCode</b> will return |
|
931 | + * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
|
932 | + */ |
|
933 | + public function replace ($key, $value, $expiration = null, $udf_flags = 0) {} |
|
934 | + |
|
935 | + /** |
|
936 | + * (PECL memcached >= 0.1.0)<br/> |
|
937 | + * Replace the item under an existing key on a specific server |
|
938 | + * @link https://php.net/manual/en/memcached.replacebykey.php |
|
939 | + * @param string $server_key <p> |
|
940 | + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
941 | + * </p> |
|
942 | + * @param string $key <p> |
|
943 | + * The key under which to store the value. |
|
944 | + * </p> |
|
945 | + * @param mixed $value <p> |
|
946 | + * The value to store. |
|
947 | + * </p> |
|
948 | + * @param int $expiration [optional] <p> |
|
949 | + * The expiration time, defaults to 0. See Expiration Times for more info. |
|
950 | + * </p> |
|
951 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
952 | + * The <b>Memcached::getResultCode</b> will return |
|
953 | + * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
|
954 | + */ |
|
955 | + public function replaceByKey ($server_key, $key, $value, $expiration = null, $udf_flags = 0) {} |
|
956 | + |
|
957 | + /** |
|
958 | + * (PECL memcached >= 0.1.0)<br/> |
|
959 | + * Delete an item |
|
960 | + * @link https://php.net/manual/en/memcached.delete.php |
|
961 | + * @param string $key <p> |
|
962 | + * The key to be deleted. |
|
963 | + * </p> |
|
964 | + * @param int $time [optional] <p> |
|
965 | + * The amount of time the server will wait to delete the item. |
|
966 | + * </p> |
|
967 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
968 | + * The <b>Memcached::getResultCode</b> will return |
|
969 | + * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
|
970 | + */ |
|
971 | + public function delete ($key, $time = 0) {} |
|
972 | + |
|
973 | + /** |
|
974 | + * (PECL memcached >= 2.0.0)<br/> |
|
975 | + * Delete multiple items |
|
976 | + * @link https://php.net/manual/en/memcached.deletemulti.php |
|
977 | + * @param array $keys <p> |
|
978 | + * The keys to be deleted. |
|
979 | + * </p> |
|
980 | + * @param int $time [optional] <p> |
|
981 | + * The amount of time the server will wait to delete the items. |
|
982 | + * </p> |
|
983 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
984 | + * The <b>Memcached::getResultCode</b> will return |
|
985 | + * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
|
986 | + */ |
|
987 | + public function deleteMulti (array $keys, $time = 0) {} |
|
988 | + |
|
989 | + /** |
|
990 | + * (PECL memcached >= 0.1.0)<br/> |
|
991 | + * Delete an item from a specific server |
|
992 | + * @link https://php.net/manual/en/memcached.deletebykey.php |
|
993 | + * @param string $server_key <p> |
|
994 | + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
995 | + * </p> |
|
996 | + * @param string $key <p> |
|
997 | + * The key to be deleted. |
|
998 | + * </p> |
|
999 | + * @param int $time [optional] <p> |
|
1000 | + * The amount of time the server will wait to delete the item. |
|
1001 | + * </p> |
|
1002 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1003 | + * The <b>Memcached::getResultCode</b> will return |
|
1004 | + * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
|
1005 | + */ |
|
1006 | + public function deleteByKey ($server_key, $key, $time = 0) {} |
|
1007 | + |
|
1008 | + /** |
|
1009 | + * (PECL memcached >= 2.0.0)<br/> |
|
1010 | + * Delete multiple items from a specific server |
|
1011 | + * @link https://php.net/manual/en/memcached.deletemultibykey.php |
|
1012 | + * @param string $server_key <p> |
|
1013 | + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
1014 | + * </p> |
|
1015 | + * @param array $keys <p> |
|
1016 | + * The keys to be deleted. |
|
1017 | + * </p> |
|
1018 | + * @param int $time [optional] <p> |
|
1019 | + * The amount of time the server will wait to delete the items. |
|
1020 | + * </p> |
|
1021 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1022 | + * The <b>Memcached::getResultCode</b> will return |
|
1023 | + * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
|
1024 | + */ |
|
1025 | + public function deleteMultiByKey ($server_key, array $keys, $time = 0) {} |
|
1026 | + |
|
1027 | + /** |
|
1028 | + * (PECL memcached >= 0.1.0)<br/> |
|
1029 | + * Increment numeric item's value |
|
1030 | + * @link https://php.net/manual/en/memcached.increment.php |
|
1031 | + * @param string $key <p> |
|
1032 | + * The key of the item to increment. |
|
1033 | + * </p> |
|
1034 | + * @param int $offset [optional] <p> |
|
1035 | + * The amount by which to increment the item's value. |
|
1036 | + * </p> |
|
1037 | + * @param int $initial_value [optional] <p> |
|
1038 | + * The value to set the item to if it doesn't currently exist. |
|
1039 | + * </p> |
|
1040 | + * @param int $expiry [optional] <p> |
|
1041 | + * The expiry time to set on the item. |
|
1042 | + * </p> |
|
1043 | + * @return int new item's value on success or <b>FALSE</b> on failure. |
|
1044 | + */ |
|
1045 | + public function increment ($key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
1046 | + |
|
1047 | + /** |
|
1048 | + * (PECL memcached >= 0.1.0)<br/> |
|
1049 | + * Decrement numeric item's value |
|
1050 | + * @link https://php.net/manual/en/memcached.decrement.php |
|
1051 | + * @param string $key <p> |
|
1052 | + * The key of the item to decrement. |
|
1053 | + * </p> |
|
1054 | + * @param int $offset [optional] <p> |
|
1055 | + * The amount by which to decrement the item's value. |
|
1056 | + * </p> |
|
1057 | + * @param int $initial_value [optional] <p> |
|
1058 | + * The value to set the item to if it doesn't currently exist. |
|
1059 | + * </p> |
|
1060 | + * @param int $expiry [optional] <p> |
|
1061 | + * The expiry time to set on the item. |
|
1062 | + * </p> |
|
1063 | + * @return int item's new value on success or <b>FALSE</b> on failure. |
|
1064 | + */ |
|
1065 | + public function decrement ($key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
1066 | + |
|
1067 | + /** |
|
1068 | + * (PECL memcached >= 2.0.0)<br/> |
|
1069 | + * Increment numeric item's value, stored on a specific server |
|
1070 | + * @link https://php.net/manual/en/memcached.incrementbykey.php |
|
1071 | + * @param string $server_key <p> |
|
1072 | + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
1073 | + * </p> |
|
1074 | + * @param string $key <p> |
|
1075 | + * The key of the item to increment. |
|
1076 | + * </p> |
|
1077 | + * @param int $offset [optional] <p> |
|
1078 | + * The amount by which to increment the item's value. |
|
1079 | + * </p> |
|
1080 | + * @param int $initial_value [optional] <p> |
|
1081 | + * The value to set the item to if it doesn't currently exist. |
|
1082 | + * </p> |
|
1083 | + * @param int $expiry [optional] <p> |
|
1084 | + * The expiry time to set on the item. |
|
1085 | + * </p> |
|
1086 | + * @return int new item's value on success or <b>FALSE</b> on failure. |
|
1087 | + */ |
|
1088 | + public function incrementByKey ($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
1089 | + |
|
1090 | + /** |
|
1091 | + * (PECL memcached >= 2.0.0)<br/> |
|
1092 | + * Decrement numeric item's value, stored on a specific server |
|
1093 | + * @link https://php.net/manual/en/memcached.decrementbykey.php |
|
1094 | + * @param string $server_key <p> |
|
1095 | + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
1096 | + * </p> |
|
1097 | + * @param string $key <p> |
|
1098 | + * The key of the item to decrement. |
|
1099 | + * </p> |
|
1100 | + * @param int $offset [optional] <p> |
|
1101 | + * The amount by which to decrement the item's value. |
|
1102 | + * </p> |
|
1103 | + * @param int $initial_value [optional] <p> |
|
1104 | + * The value to set the item to if it doesn't currently exist. |
|
1105 | + * </p> |
|
1106 | + * @param int $expiry [optional] <p> |
|
1107 | + * The expiry time to set on the item. |
|
1108 | + * </p> |
|
1109 | + * @return int item's new value on success or <b>FALSE</b> on failure. |
|
1110 | + */ |
|
1111 | + public function decrementByKey ($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
1112 | + |
|
1113 | + /** |
|
1114 | + * (PECL memcached >= 0.1.0)<br/> |
|
1115 | + * Add a server to the server pool |
|
1116 | + * @link https://php.net/manual/en/memcached.addserver.php |
|
1117 | + * @param string $host <p> |
|
1118 | + * The hostname of the memcache server. If the hostname is invalid, data-related |
|
1119 | + * operations will set |
|
1120 | + * <b>Memcached::RES_HOST_LOOKUP_FAILURE</b> result code. |
|
1121 | + * </p> |
|
1122 | + * @param int $port <p> |
|
1123 | + * The port on which memcache is running. Usually, this is |
|
1124 | + * 11211. |
|
1125 | + * </p> |
|
1126 | + * @param int $weight [optional] <p> |
|
1127 | + * The weight of the server relative to the total weight of all the |
|
1128 | + * servers in the pool. This controls the probability of the server being |
|
1129 | + * selected for operations. This is used only with consistent distribution |
|
1130 | + * option and usually corresponds to the amount of memory available to |
|
1131 | + * memcache on that server. |
|
1132 | + * </p> |
|
1133 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1134 | + */ |
|
1135 | + public function addServer ($host, $port, $weight = 0) {} |
|
1136 | + |
|
1137 | + /** |
|
1138 | + * (PECL memcached >= 0.1.1)<br/> |
|
1139 | + * Add multiple servers to the server pool |
|
1140 | + * @link https://php.net/manual/en/memcached.addservers.php |
|
1141 | + * @param array $servers |
|
1142 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1143 | + */ |
|
1144 | + public function addServers (array $servers) {} |
|
1145 | + |
|
1146 | + /** |
|
1147 | + * (PECL memcached >= 0.1.0)<br/> |
|
1148 | + * Get the list of the servers in the pool |
|
1149 | + * @link https://php.net/manual/en/memcached.getserverlist.php |
|
1150 | + * @return array The list of all servers in the server pool. |
|
1151 | + */ |
|
1152 | + public function getServerList () {} |
|
1153 | + |
|
1154 | + /** |
|
1155 | + * (PECL memcached >= 0.1.0)<br/> |
|
1156 | + * Map a key to a server |
|
1157 | + * @link https://php.net/manual/en/memcached.getserverbykey.php |
|
1158 | + * @param string $server_key <p> |
|
1159 | + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. |
|
1160 | + * </p> |
|
1161 | + * @return array an array containing three keys of host, |
|
1162 | + * port, and weight on success or <b>FALSE</b> |
|
1163 | + * on failure. |
|
1164 | + * Use <b>Memcached::getResultCode</b> if necessary. |
|
1165 | + */ |
|
1166 | + public function getServerByKey ($server_key) {} |
|
1167 | + |
|
1168 | + /** |
|
1169 | + * (PECL memcached >= 2.0.0)<br/> |
|
1170 | + * Clears all servers from the server list |
|
1171 | + * @link https://php.net/manual/en/memcached.resetserverlist.php |
|
1172 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1173 | + */ |
|
1174 | + public function resetServerList () {} |
|
1175 | + |
|
1176 | + /** |
|
1177 | + * (PECL memcached >= 2.0.0)<br/> |
|
1178 | + * Close any open connections |
|
1179 | + * @link https://php.net/manual/en/memcached.quit.php |
|
1180 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1181 | + */ |
|
1182 | + public function quit () {} |
|
1183 | + |
|
1184 | + /** |
|
1185 | + * (PECL memcached >= 0.1.0)<br/> |
|
1186 | + * Get server pool statistics |
|
1187 | + * @link https://php.net/manual/en/memcached.getstats.php |
|
1188 | + * @param string $type |
|
1189 | + * @return array Array of server statistics, one entry per server. |
|
1190 | + */ |
|
1191 | + public function getStats ($type = null) {} |
|
1192 | + |
|
1193 | + /** |
|
1194 | + * (PECL memcached >= 0.1.5)<br/> |
|
1195 | + * Get server pool version info |
|
1196 | + * @link https://php.net/manual/en/memcached.getversion.php |
|
1197 | + * @return array Array of server versions, one entry per server. |
|
1198 | + */ |
|
1199 | + public function getVersion () {} |
|
1200 | + |
|
1201 | + /** |
|
1202 | + * (PECL memcached >= 2.0.0)<br/> |
|
1203 | + * Gets the keys stored on all the servers |
|
1204 | + * @link https://php.net/manual/en/memcached.getallkeys.php |
|
1205 | + * @return array the keys stored on all the servers on success or <b>FALSE</b> on failure. |
|
1206 | + */ |
|
1207 | + public function getAllKeys () {} |
|
1208 | + |
|
1209 | + /** |
|
1210 | + * (PECL memcached >= 0.1.0)<br/> |
|
1211 | + * Invalidate all items in the cache |
|
1212 | + * @link https://php.net/manual/en/memcached.flush.php |
|
1213 | + * @param int $delay [optional] <p> |
|
1214 | + * Numer of seconds to wait before invalidating the items. |
|
1215 | + * </p> |
|
1216 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1217 | + * Use <b>Memcached::getResultCode</b> if necessary. |
|
1218 | + */ |
|
1219 | + public function flush ($delay = 0) {} |
|
1220 | + |
|
1221 | + /** |
|
1222 | + * (PECL memcached >= 0.1.0)<br/> |
|
1223 | + * Retrieve a Memcached option value |
|
1224 | + * @link https://php.net/manual/en/memcached.getoption.php |
|
1225 | + * @param int $option <p> |
|
1226 | + * One of the Memcached::OPT_* constants. |
|
1227 | + * </p> |
|
1228 | + * @return mixed the value of the requested option, or <b>FALSE</b> on |
|
1229 | + * error. |
|
1230 | + */ |
|
1231 | + public function getOption ($option) {} |
|
1232 | + |
|
1233 | + /** |
|
1234 | + * (PECL memcached >= 0.1.0)<br/> |
|
1235 | + * Set a Memcached option |
|
1236 | + * @link https://php.net/manual/en/memcached.setoption.php |
|
1237 | + * @param int $option |
|
1238 | + * @param mixed $value |
|
1239 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1240 | + */ |
|
1241 | + public function setOption ($option, $value) {} |
|
1242 | + |
|
1243 | + /** |
|
1244 | + * (PECL memcached >= 2.0.0)<br/> |
|
1245 | + * Set Memcached options |
|
1246 | + * @link https://php.net/manual/en/memcached.setoptions.php |
|
1247 | + * @param array $options <p> |
|
1248 | + * An associative array of options where the key is the option to set and |
|
1249 | + * the value is the new value for the option. |
|
1250 | + * </p> |
|
1251 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1252 | + */ |
|
1253 | + public function setOptions (array $options) {} |
|
1254 | 1254 | |
1255 | - /** |
|
1256 | - * (PECL memcached >= 2.0.0)<br/> |
|
1257 | - * Set the credentials to use for authentication |
|
1258 | - * @link https://secure.php.net/manual/en/memcached.setsaslauthdata.php |
|
1259 | - * @param string $username <p> |
|
1260 | - * The username to use for authentication. |
|
1261 | - * </p> |
|
1262 | - * @param string $password <p> |
|
1263 | - * The password to use for authentication. |
|
1264 | - * </p> |
|
1265 | - * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1266 | - */ |
|
1267 | - public function setSaslAuthData (string $username , string $password) {} |
|
1268 | - |
|
1269 | - /** |
|
1270 | - * (PECL memcached >= 2.0.0)<br/> |
|
1271 | - * Check if a persitent connection to memcache is being used |
|
1272 | - * @link https://php.net/manual/en/memcached.ispersistent.php |
|
1273 | - * @return bool true if Memcache instance uses a persistent connection, false otherwise. |
|
1274 | - */ |
|
1275 | - public function isPersistent () {} |
|
1276 | - |
|
1277 | - /** |
|
1278 | - * (PECL memcached >= 2.0.0)<br/> |
|
1279 | - * Check if the instance was recently created |
|
1280 | - * @link https://php.net/manual/en/memcached.ispristine.php |
|
1281 | - * @return bool the true if instance is recently created, false otherwise. |
|
1282 | - */ |
|
1283 | - public function isPristine () {} |
|
1284 | - |
|
1285 | - public function flushBuffers () {} |
|
1286 | - |
|
1287 | - public function setEncodingKey ( $key ) {} |
|
1288 | - |
|
1289 | - public function getLastDisconnectedServer () {} |
|
1290 | - |
|
1291 | - public function getLastErrorErrno () {} |
|
1292 | - |
|
1293 | - public function getLastErrorCode () {} |
|
1294 | - |
|
1295 | - public function getLastErrorMessage () {} |
|
1296 | - |
|
1297 | - public function setBucket (array $host_map, array $forward_map, $replicas) {} |
|
1255 | + /** |
|
1256 | + * (PECL memcached >= 2.0.0)<br/> |
|
1257 | + * Set the credentials to use for authentication |
|
1258 | + * @link https://secure.php.net/manual/en/memcached.setsaslauthdata.php |
|
1259 | + * @param string $username <p> |
|
1260 | + * The username to use for authentication. |
|
1261 | + * </p> |
|
1262 | + * @param string $password <p> |
|
1263 | + * The password to use for authentication. |
|
1264 | + * </p> |
|
1265 | + * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
|
1266 | + */ |
|
1267 | + public function setSaslAuthData (string $username , string $password) {} |
|
1268 | + |
|
1269 | + /** |
|
1270 | + * (PECL memcached >= 2.0.0)<br/> |
|
1271 | + * Check if a persitent connection to memcache is being used |
|
1272 | + * @link https://php.net/manual/en/memcached.ispersistent.php |
|
1273 | + * @return bool true if Memcache instance uses a persistent connection, false otherwise. |
|
1274 | + */ |
|
1275 | + public function isPersistent () {} |
|
1276 | + |
|
1277 | + /** |
|
1278 | + * (PECL memcached >= 2.0.0)<br/> |
|
1279 | + * Check if the instance was recently created |
|
1280 | + * @link https://php.net/manual/en/memcached.ispristine.php |
|
1281 | + * @return bool the true if instance is recently created, false otherwise. |
|
1282 | + */ |
|
1283 | + public function isPristine () {} |
|
1284 | + |
|
1285 | + public function flushBuffers () {} |
|
1286 | + |
|
1287 | + public function setEncodingKey ( $key ) {} |
|
1288 | + |
|
1289 | + public function getLastDisconnectedServer () {} |
|
1290 | + |
|
1291 | + public function getLastErrorErrno () {} |
|
1292 | + |
|
1293 | + public function getLastErrorCode () {} |
|
1294 | + |
|
1295 | + public function getLastErrorMessage () {} |
|
1296 | + |
|
1297 | + public function setBucket (array $host_map, array $forward_map, $replicas) {} |
|
1298 | 1298 | |
1299 | 1299 | } |
1300 | 1300 |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | * Represents a connection to a set of memcached servers. |
7 | 7 | * @link https://php.net/manual/en/class.memcached.php |
8 | 8 | */ |
9 | -class Memcached { |
|
9 | +class Memcached { |
|
10 | 10 | |
11 | 11 | /** |
12 | 12 | * <p>Enables or disables payload compression. When enabled, |
@@ -498,7 +498,7 @@ discard block |
||
498 | 498 | * @param $persistent_id [optional] |
499 | 499 | * @param $callback [optional] |
500 | 500 | */ |
501 | - public function __construct ($persistent_id = '', $on_new_object_cb = null) {} |
|
501 | + public function __construct($persistent_id = '', $on_new_object_cb = null) {} |
|
502 | 502 | |
503 | 503 | /** |
504 | 504 | * (PECL memcached >= 0.1.0)<br/> |
@@ -506,7 +506,7 @@ discard block |
||
506 | 506 | * @link https://php.net/manual/en/memcached.getresultcode.php |
507 | 507 | * @return int Result code of the last Memcached operation. |
508 | 508 | */ |
509 | - public function getResultCode () {} |
|
509 | + public function getResultCode() {} |
|
510 | 510 | |
511 | 511 | /** |
512 | 512 | * (PECL memcached >= 1.0.0)<br/> |
@@ -514,7 +514,7 @@ discard block |
||
514 | 514 | * @link https://php.net/manual/en/memcached.getresultmessage.php |
515 | 515 | * @return string Message describing the result of the last Memcached operation. |
516 | 516 | */ |
517 | - public function getResultMessage () {} |
|
517 | + public function getResultMessage() {} |
|
518 | 518 | |
519 | 519 | /** |
520 | 520 | * (PECL memcached >= 0.1.0)<br/> |
@@ -533,7 +533,7 @@ discard block |
||
533 | 533 | * The <b>Memcached::getResultCode</b> will return |
534 | 534 | * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
535 | 535 | */ |
536 | - public function get ($key, callable $cache_cb = null, $flags = 0) {} |
|
536 | + public function get($key, callable $cache_cb = null, $flags = 0) {} |
|
537 | 537 | |
538 | 538 | /** |
539 | 539 | * (PECL memcached >= 0.1.0)<br/> |
@@ -555,7 +555,7 @@ discard block |
||
555 | 555 | * The <b>Memcached::getResultCode</b> will return |
556 | 556 | * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
557 | 557 | */ |
558 | - public function getByKey ($server_key, $key, callable $cache_cb = null, $flags = 0) {} |
|
558 | + public function getByKey($server_key, $key, callable $cache_cb = null, $flags = 0) {} |
|
559 | 559 | |
560 | 560 | /** |
561 | 561 | * (PECL memcached >= 0.1.0)<br/> |
@@ -570,7 +570,7 @@ discard block |
||
570 | 570 | * @return mixed the array of found items or <b>FALSE</b> on failure. |
571 | 571 | * Use <b>Memcached::getResultCode</b> if necessary. |
572 | 572 | */ |
573 | - public function getMulti (array $keys, $flags = null) {} |
|
573 | + public function getMulti(array $keys, $flags = null) {} |
|
574 | 574 | |
575 | 575 | /** |
576 | 576 | * (PECL memcached >= 0.1.0)<br/> |
@@ -588,7 +588,7 @@ discard block |
||
588 | 588 | * @return array the array of found items or <b>FALSE</b> on failure. |
589 | 589 | * Use <b>Memcached::getResultCode</b> if necessary. |
590 | 590 | */ |
591 | - public function getMultiByKey ($server_key, array $keys, $flags = 0) {} |
|
591 | + public function getMultiByKey($server_key, array $keys, $flags = 0) {} |
|
592 | 592 | |
593 | 593 | /** |
594 | 594 | * (PECL memcached >= 0.1.0)<br/> |
@@ -606,7 +606,7 @@ discard block |
||
606 | 606 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
607 | 607 | * Use <b>Memcached::getResultCode</b> if necessary. |
608 | 608 | */ |
609 | - public function getDelayed (array $keys, $with_cas = null, callable $value_cb = null) {} |
|
609 | + public function getDelayed(array $keys, $with_cas = null, callable $value_cb = null) {} |
|
610 | 610 | |
611 | 611 | /** |
612 | 612 | * (PECL memcached >= 0.1.0)<br/> |
@@ -627,7 +627,7 @@ discard block |
||
627 | 627 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
628 | 628 | * Use <b>Memcached::getResultCode</b> if necessary. |
629 | 629 | */ |
630 | - public function getDelayedByKey ($server_key, array $keys, $with_cas = null, callable $value_cb = null) {} |
|
630 | + public function getDelayedByKey($server_key, array $keys, $with_cas = null, callable $value_cb = null) {} |
|
631 | 631 | |
632 | 632 | /** |
633 | 633 | * (PECL memcached >= 0.1.0)<br/> |
@@ -637,7 +637,7 @@ discard block |
||
637 | 637 | * The <b>Memcached::getResultCode</b> will return |
638 | 638 | * <b>Memcached::RES_END</b> if result set is exhausted. |
639 | 639 | */ |
640 | - public function fetch () {} |
|
640 | + public function fetch() {} |
|
641 | 641 | |
642 | 642 | /** |
643 | 643 | * (PECL memcached >= 0.1.0)<br/> |
@@ -646,7 +646,7 @@ discard block |
||
646 | 646 | * @return array the results or <b>FALSE</b> on failure. |
647 | 647 | * Use <b>Memcached::getResultCode</b> if necessary. |
648 | 648 | */ |
649 | - public function fetchAll () {} |
|
649 | + public function fetchAll() {} |
|
650 | 650 | |
651 | 651 | /** |
652 | 652 | * (PECL memcached >= 0.1.0)<br/> |
@@ -664,7 +664,7 @@ discard block |
||
664 | 664 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
665 | 665 | * Use <b>Memcached::getResultCode</b> if necessary. |
666 | 666 | */ |
667 | - public function set ($key, $value, $expiration = 0, $udf_flags = 0) {} |
|
667 | + public function set($key, $value, $expiration = 0, $udf_flags = 0) {} |
|
668 | 668 | |
669 | 669 | /** |
670 | 670 | * (PECL memcached >= 0.1.0)<br/> |
@@ -685,7 +685,7 @@ discard block |
||
685 | 685 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
686 | 686 | * Use <b>Memcached::getResultCode</b> if necessary. |
687 | 687 | */ |
688 | - public function setByKey ($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
688 | + public function setByKey($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
689 | 689 | |
690 | 690 | /** |
691 | 691 | * (PECL memcached >= 2.0.0)<br/> |
@@ -700,7 +700,7 @@ discard block |
||
700 | 700 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
701 | 701 | * Use <b>Memcached::getResultCode</b> if necessary. |
702 | 702 | */ |
703 | - public function touch ($key, $expiration = 0) {} |
|
703 | + public function touch($key, $expiration = 0) {} |
|
704 | 704 | |
705 | 705 | /** |
706 | 706 | * (PECL memcached >= 2.0.0)<br/> |
@@ -718,7 +718,7 @@ discard block |
||
718 | 718 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
719 | 719 | * Use <b>Memcached::getResultCode</b> if necessary. |
720 | 720 | */ |
721 | - public function touchByKey ($server_key, $key, $expiration) {} |
|
721 | + public function touchByKey($server_key, $key, $expiration) {} |
|
722 | 722 | |
723 | 723 | /** |
724 | 724 | * (PECL memcached >= 0.1.0)<br/> |
@@ -733,7 +733,7 @@ discard block |
||
733 | 733 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
734 | 734 | * Use <b>Memcached::getResultCode</b> if necessary. |
735 | 735 | */ |
736 | - public function setMulti (array $items, $expiration = 0, $udf_flags = 0) {} |
|
736 | + public function setMulti(array $items, $expiration = 0, $udf_flags = 0) {} |
|
737 | 737 | |
738 | 738 | /** |
739 | 739 | * (PECL memcached >= 0.1.0)<br/> |
@@ -751,7 +751,7 @@ discard block |
||
751 | 751 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
752 | 752 | * Use <b>Memcached::getResultCode</b> if necessary. |
753 | 753 | */ |
754 | - public function setMultiByKey ($server_key, array $items, $expiration = 0, $udf_flags = 0) {} |
|
754 | + public function setMultiByKey($server_key, array $items, $expiration = 0, $udf_flags = 0) {} |
|
755 | 755 | |
756 | 756 | /** |
757 | 757 | * (PECL memcached >= 0.1.0)<br/> |
@@ -774,7 +774,7 @@ discard block |
||
774 | 774 | * <b>Memcached::RES_DATA_EXISTS</b> if the item you are trying |
775 | 775 | * to store has been modified since you last fetched it. |
776 | 776 | */ |
777 | - public function cas ($cas_token, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
777 | + public function cas($cas_token, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
778 | 778 | |
779 | 779 | /** |
780 | 780 | * (PECL memcached >= 0.1.0)<br/> |
@@ -800,7 +800,7 @@ discard block |
||
800 | 800 | * <b>Memcached::RES_DATA_EXISTS</b> if the item you are trying |
801 | 801 | * to store has been modified since you last fetched it. |
802 | 802 | */ |
803 | - public function casByKey ($cas_token, $server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
803 | + public function casByKey($cas_token, $server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
804 | 804 | |
805 | 805 | /** |
806 | 806 | * (PECL memcached >= 0.1.0)<br/> |
@@ -819,7 +819,7 @@ discard block |
||
819 | 819 | * The <b>Memcached::getResultCode</b> will return |
820 | 820 | * <b>Memcached::RES_NOTSTORED</b> if the key already exists. |
821 | 821 | */ |
822 | - public function add ($key, $value, $expiration = 0, $udf_flags = 0) {} |
|
822 | + public function add($key, $value, $expiration = 0, $udf_flags = 0) {} |
|
823 | 823 | |
824 | 824 | /** |
825 | 825 | * (PECL memcached >= 0.1.0)<br/> |
@@ -841,7 +841,7 @@ discard block |
||
841 | 841 | * The <b>Memcached::getResultCode</b> will return |
842 | 842 | * <b>Memcached::RES_NOTSTORED</b> if the key already exists. |
843 | 843 | */ |
844 | - public function addByKey ($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
844 | + public function addByKey($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
845 | 845 | |
846 | 846 | /** |
847 | 847 | * (PECL memcached >= 0.1.0)<br/> |
@@ -857,7 +857,7 @@ discard block |
||
857 | 857 | * The <b>Memcached::getResultCode</b> will return |
858 | 858 | * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
859 | 859 | */ |
860 | - public function append ($key, $value) {} |
|
860 | + public function append($key, $value) {} |
|
861 | 861 | |
862 | 862 | /** |
863 | 863 | * (PECL memcached >= 0.1.0)<br/> |
@@ -876,7 +876,7 @@ discard block |
||
876 | 876 | * The <b>Memcached::getResultCode</b> will return |
877 | 877 | * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
878 | 878 | */ |
879 | - public function appendByKey ($server_key, $key, $value) {} |
|
879 | + public function appendByKey($server_key, $key, $value) {} |
|
880 | 880 | |
881 | 881 | /** |
882 | 882 | * (PECL memcached >= 0.1.0)<br/> |
@@ -892,7 +892,7 @@ discard block |
||
892 | 892 | * The <b>Memcached::getResultCode</b> will return |
893 | 893 | * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
894 | 894 | */ |
895 | - public function prepend ($key, $value) {} |
|
895 | + public function prepend($key, $value) {} |
|
896 | 896 | |
897 | 897 | /** |
898 | 898 | * (PECL memcached >= 0.1.0)<br/> |
@@ -911,7 +911,7 @@ discard block |
||
911 | 911 | * The <b>Memcached::getResultCode</b> will return |
912 | 912 | * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
913 | 913 | */ |
914 | - public function prependByKey ($server_key, $key, $value) {} |
|
914 | + public function prependByKey($server_key, $key, $value) {} |
|
915 | 915 | |
916 | 916 | /** |
917 | 917 | * (PECL memcached >= 0.1.0)<br/> |
@@ -930,7 +930,7 @@ discard block |
||
930 | 930 | * The <b>Memcached::getResultCode</b> will return |
931 | 931 | * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
932 | 932 | */ |
933 | - public function replace ($key, $value, $expiration = null, $udf_flags = 0) {} |
|
933 | + public function replace($key, $value, $expiration = null, $udf_flags = 0) {} |
|
934 | 934 | |
935 | 935 | /** |
936 | 936 | * (PECL memcached >= 0.1.0)<br/> |
@@ -952,7 +952,7 @@ discard block |
||
952 | 952 | * The <b>Memcached::getResultCode</b> will return |
953 | 953 | * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
954 | 954 | */ |
955 | - public function replaceByKey ($server_key, $key, $value, $expiration = null, $udf_flags = 0) {} |
|
955 | + public function replaceByKey($server_key, $key, $value, $expiration = null, $udf_flags = 0) {} |
|
956 | 956 | |
957 | 957 | /** |
958 | 958 | * (PECL memcached >= 0.1.0)<br/> |
@@ -968,7 +968,7 @@ discard block |
||
968 | 968 | * The <b>Memcached::getResultCode</b> will return |
969 | 969 | * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
970 | 970 | */ |
971 | - public function delete ($key, $time = 0) {} |
|
971 | + public function delete($key, $time = 0) {} |
|
972 | 972 | |
973 | 973 | /** |
974 | 974 | * (PECL memcached >= 2.0.0)<br/> |
@@ -984,7 +984,7 @@ discard block |
||
984 | 984 | * The <b>Memcached::getResultCode</b> will return |
985 | 985 | * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
986 | 986 | */ |
987 | - public function deleteMulti (array $keys, $time = 0) {} |
|
987 | + public function deleteMulti(array $keys, $time = 0) {} |
|
988 | 988 | |
989 | 989 | /** |
990 | 990 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1003,7 +1003,7 @@ discard block |
||
1003 | 1003 | * The <b>Memcached::getResultCode</b> will return |
1004 | 1004 | * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
1005 | 1005 | */ |
1006 | - public function deleteByKey ($server_key, $key, $time = 0) {} |
|
1006 | + public function deleteByKey($server_key, $key, $time = 0) {} |
|
1007 | 1007 | |
1008 | 1008 | /** |
1009 | 1009 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1022,7 +1022,7 @@ discard block |
||
1022 | 1022 | * The <b>Memcached::getResultCode</b> will return |
1023 | 1023 | * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
1024 | 1024 | */ |
1025 | - public function deleteMultiByKey ($server_key, array $keys, $time = 0) {} |
|
1025 | + public function deleteMultiByKey($server_key, array $keys, $time = 0) {} |
|
1026 | 1026 | |
1027 | 1027 | /** |
1028 | 1028 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1042,7 +1042,7 @@ discard block |
||
1042 | 1042 | * </p> |
1043 | 1043 | * @return int new item's value on success or <b>FALSE</b> on failure. |
1044 | 1044 | */ |
1045 | - public function increment ($key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
1045 | + public function increment($key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
1046 | 1046 | |
1047 | 1047 | /** |
1048 | 1048 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1062,7 +1062,7 @@ discard block |
||
1062 | 1062 | * </p> |
1063 | 1063 | * @return int item's new value on success or <b>FALSE</b> on failure. |
1064 | 1064 | */ |
1065 | - public function decrement ($key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
1065 | + public function decrement($key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
1066 | 1066 | |
1067 | 1067 | /** |
1068 | 1068 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1085,7 +1085,7 @@ discard block |
||
1085 | 1085 | * </p> |
1086 | 1086 | * @return int new item's value on success or <b>FALSE</b> on failure. |
1087 | 1087 | */ |
1088 | - public function incrementByKey ($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
1088 | + public function incrementByKey($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
1089 | 1089 | |
1090 | 1090 | /** |
1091 | 1091 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1108,7 +1108,7 @@ discard block |
||
1108 | 1108 | * </p> |
1109 | 1109 | * @return int item's new value on success or <b>FALSE</b> on failure. |
1110 | 1110 | */ |
1111 | - public function decrementByKey ($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
1111 | + public function decrementByKey($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
1112 | 1112 | |
1113 | 1113 | /** |
1114 | 1114 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1132,7 +1132,7 @@ discard block |
||
1132 | 1132 | * </p> |
1133 | 1133 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
1134 | 1134 | */ |
1135 | - public function addServer ($host, $port, $weight = 0) {} |
|
1135 | + public function addServer($host, $port, $weight = 0) {} |
|
1136 | 1136 | |
1137 | 1137 | /** |
1138 | 1138 | * (PECL memcached >= 0.1.1)<br/> |
@@ -1141,7 +1141,7 @@ discard block |
||
1141 | 1141 | * @param array $servers |
1142 | 1142 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
1143 | 1143 | */ |
1144 | - public function addServers (array $servers) {} |
|
1144 | + public function addServers(array $servers) {} |
|
1145 | 1145 | |
1146 | 1146 | /** |
1147 | 1147 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1149,7 +1149,7 @@ discard block |
||
1149 | 1149 | * @link https://php.net/manual/en/memcached.getserverlist.php |
1150 | 1150 | * @return array The list of all servers in the server pool. |
1151 | 1151 | */ |
1152 | - public function getServerList () {} |
|
1152 | + public function getServerList() {} |
|
1153 | 1153 | |
1154 | 1154 | /** |
1155 | 1155 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1163,7 +1163,7 @@ discard block |
||
1163 | 1163 | * on failure. |
1164 | 1164 | * Use <b>Memcached::getResultCode</b> if necessary. |
1165 | 1165 | */ |
1166 | - public function getServerByKey ($server_key) {} |
|
1166 | + public function getServerByKey($server_key) {} |
|
1167 | 1167 | |
1168 | 1168 | /** |
1169 | 1169 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1171,7 +1171,7 @@ discard block |
||
1171 | 1171 | * @link https://php.net/manual/en/memcached.resetserverlist.php |
1172 | 1172 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
1173 | 1173 | */ |
1174 | - public function resetServerList () {} |
|
1174 | + public function resetServerList() {} |
|
1175 | 1175 | |
1176 | 1176 | /** |
1177 | 1177 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1179,7 +1179,7 @@ discard block |
||
1179 | 1179 | * @link https://php.net/manual/en/memcached.quit.php |
1180 | 1180 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
1181 | 1181 | */ |
1182 | - public function quit () {} |
|
1182 | + public function quit() {} |
|
1183 | 1183 | |
1184 | 1184 | /** |
1185 | 1185 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1188,7 +1188,7 @@ discard block |
||
1188 | 1188 | * @param string $type |
1189 | 1189 | * @return array Array of server statistics, one entry per server. |
1190 | 1190 | */ |
1191 | - public function getStats ($type = null) {} |
|
1191 | + public function getStats($type = null) {} |
|
1192 | 1192 | |
1193 | 1193 | /** |
1194 | 1194 | * (PECL memcached >= 0.1.5)<br/> |
@@ -1196,7 +1196,7 @@ discard block |
||
1196 | 1196 | * @link https://php.net/manual/en/memcached.getversion.php |
1197 | 1197 | * @return array Array of server versions, one entry per server. |
1198 | 1198 | */ |
1199 | - public function getVersion () {} |
|
1199 | + public function getVersion() {} |
|
1200 | 1200 | |
1201 | 1201 | /** |
1202 | 1202 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1204,7 +1204,7 @@ discard block |
||
1204 | 1204 | * @link https://php.net/manual/en/memcached.getallkeys.php |
1205 | 1205 | * @return array the keys stored on all the servers on success or <b>FALSE</b> on failure. |
1206 | 1206 | */ |
1207 | - public function getAllKeys () {} |
|
1207 | + public function getAllKeys() {} |
|
1208 | 1208 | |
1209 | 1209 | /** |
1210 | 1210 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1216,7 +1216,7 @@ discard block |
||
1216 | 1216 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
1217 | 1217 | * Use <b>Memcached::getResultCode</b> if necessary. |
1218 | 1218 | */ |
1219 | - public function flush ($delay = 0) {} |
|
1219 | + public function flush($delay = 0) {} |
|
1220 | 1220 | |
1221 | 1221 | /** |
1222 | 1222 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1228,7 +1228,7 @@ discard block |
||
1228 | 1228 | * @return mixed the value of the requested option, or <b>FALSE</b> on |
1229 | 1229 | * error. |
1230 | 1230 | */ |
1231 | - public function getOption ($option) {} |
|
1231 | + public function getOption($option) {} |
|
1232 | 1232 | |
1233 | 1233 | /** |
1234 | 1234 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1238,7 +1238,7 @@ discard block |
||
1238 | 1238 | * @param mixed $value |
1239 | 1239 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
1240 | 1240 | */ |
1241 | - public function setOption ($option, $value) {} |
|
1241 | + public function setOption($option, $value) {} |
|
1242 | 1242 | |
1243 | 1243 | /** |
1244 | 1244 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1250,7 +1250,7 @@ discard block |
||
1250 | 1250 | * </p> |
1251 | 1251 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
1252 | 1252 | */ |
1253 | - public function setOptions (array $options) {} |
|
1253 | + public function setOptions(array $options) {} |
|
1254 | 1254 | |
1255 | 1255 | /** |
1256 | 1256 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1264,7 +1264,7 @@ discard block |
||
1264 | 1264 | * </p> |
1265 | 1265 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
1266 | 1266 | */ |
1267 | - public function setSaslAuthData (string $username , string $password) {} |
|
1267 | + public function setSaslAuthData(string $username, string $password) {} |
|
1268 | 1268 | |
1269 | 1269 | /** |
1270 | 1270 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1272,7 +1272,7 @@ discard block |
||
1272 | 1272 | * @link https://php.net/manual/en/memcached.ispersistent.php |
1273 | 1273 | * @return bool true if Memcache instance uses a persistent connection, false otherwise. |
1274 | 1274 | */ |
1275 | - public function isPersistent () {} |
|
1275 | + public function isPersistent() {} |
|
1276 | 1276 | |
1277 | 1277 | /** |
1278 | 1278 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1280,28 +1280,28 @@ discard block |
||
1280 | 1280 | * @link https://php.net/manual/en/memcached.ispristine.php |
1281 | 1281 | * @return bool the true if instance is recently created, false otherwise. |
1282 | 1282 | */ |
1283 | - public function isPristine () {} |
|
1283 | + public function isPristine() {} |
|
1284 | 1284 | |
1285 | - public function flushBuffers () {} |
|
1285 | + public function flushBuffers() {} |
|
1286 | 1286 | |
1287 | - public function setEncodingKey ( $key ) {} |
|
1287 | + public function setEncodingKey($key) {} |
|
1288 | 1288 | |
1289 | - public function getLastDisconnectedServer () {} |
|
1289 | + public function getLastDisconnectedServer() {} |
|
1290 | 1290 | |
1291 | - public function getLastErrorErrno () {} |
|
1291 | + public function getLastErrorErrno() {} |
|
1292 | 1292 | |
1293 | - public function getLastErrorCode () {} |
|
1293 | + public function getLastErrorCode() {} |
|
1294 | 1294 | |
1295 | - public function getLastErrorMessage () {} |
|
1295 | + public function getLastErrorMessage() {} |
|
1296 | 1296 | |
1297 | - public function setBucket (array $host_map, array $forward_map, $replicas) {} |
|
1297 | + public function setBucket(array $host_map, array $forward_map, $replicas) {} |
|
1298 | 1298 | |
1299 | 1299 | } |
1300 | 1300 | |
1301 | 1301 | /** |
1302 | 1302 | * @link https://php.net/manual/en/class.memcachedexception.php |
1303 | 1303 | */ |
1304 | -class MemcachedException extends RuntimeException { |
|
1304 | +class MemcachedException extends RuntimeException { |
|
1305 | 1305 | |
1306 | 1306 | } |
1307 | 1307 | // End of memcached v.3.0.4 |
@@ -201,9 +201,9 @@ discard block |
||
201 | 201 | */ |
202 | 202 | public function replace ($key, $var, $flag = null, $expire = null) {} |
203 | 203 | |
204 | - public function cas () {} |
|
204 | + public function cas () {} |
|
205 | 205 | |
206 | - public function append () {} |
|
206 | + public function append () {} |
|
207 | 207 | |
208 | 208 | /** |
209 | 209 | * @return string |
@@ -335,28 +335,28 @@ discard block |
||
335 | 335 | class Memcache extends MemcachePool { |
336 | 336 | |
337 | 337 | |
338 | - /** |
|
339 | - * (PECL memcache >= 0.4.0)<br/> |
|
340 | - * Open memcached server persistent connection |
|
341 | - * @link https://php.net/manual/en/memcache.pconnect.php |
|
342 | - * @param string $host <p> |
|
343 | - * Point to the host where memcached is listening for connections. This parameter |
|
344 | - * may also specify other transports like unix:///path/to/memcached.sock |
|
345 | - * to use UNIX domain sockets, in this case <i>port</i> must also |
|
346 | - * be set to 0. |
|
347 | - * </p> |
|
348 | - * @param int $port [optional] <p> |
|
349 | - * Point to the port where memcached is listening for connections. Set this |
|
350 | - * parameter to 0 when using UNIX domain sockets. |
|
351 | - * </p> |
|
352 | - * @param int $timeout [optional] <p> |
|
353 | - * Value in seconds which will be used for connecting to the daemon. Think |
|
354 | - * twice before changing the default value of 1 second - you can lose all |
|
355 | - * the advantages of caching if your connection is too slow. |
|
356 | - * </p> |
|
357 | - * @return mixed a Memcache object or <b>FALSE</b> on failure. |
|
358 | - */ |
|
359 | - public function pconnect ($host, $port, $timeout = 1) {} |
|
338 | + /** |
|
339 | + * (PECL memcache >= 0.4.0)<br/> |
|
340 | + * Open memcached server persistent connection |
|
341 | + * @link https://php.net/manual/en/memcache.pconnect.php |
|
342 | + * @param string $host <p> |
|
343 | + * Point to the host where memcached is listening for connections. This parameter |
|
344 | + * may also specify other transports like unix:///path/to/memcached.sock |
|
345 | + * to use UNIX domain sockets, in this case <i>port</i> must also |
|
346 | + * be set to 0. |
|
347 | + * </p> |
|
348 | + * @param int $port [optional] <p> |
|
349 | + * Point to the port where memcached is listening for connections. Set this |
|
350 | + * parameter to 0 when using UNIX domain sockets. |
|
351 | + * </p> |
|
352 | + * @param int $timeout [optional] <p> |
|
353 | + * Value in seconds which will be used for connecting to the daemon. Think |
|
354 | + * twice before changing the default value of 1 second - you can lose all |
|
355 | + * the advantages of caching if your connection is too slow. |
|
356 | + * </p> |
|
357 | + * @return mixed a Memcache object or <b>FALSE</b> on failure. |
|
358 | + */ |
|
359 | + public function pconnect ($host, $port, $timeout = 1) {} |
|
360 | 360 | } |
361 | 361 | |
362 | 362 | // string $host [, int $port [, int $timeout ]] |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | // Start of memcache v.3.0.8 |
4 | 4 | |
5 | -class MemcachePool { |
|
5 | +class MemcachePool { |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * (PECL memcache >= 0.2.0)<br/> |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @param int $timeout [optional] <p>Value in seconds which will be used for connecting to the daemon. Think twice before changing the default value of 1 second - you can lose all the advantages of caching if your connection is too slow.</p> |
28 | 28 | * @return boolean <p>Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.</p> |
29 | 29 | */ |
30 | - public function connect ($host, $port, $timeout = 1) {} |
|
30 | + public function connect($host, $port, $timeout = 1) {} |
|
31 | 31 | |
32 | 32 | /** |
33 | 33 | * (PECL memcache >= 2.0.0)<br/> |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | * </p> |
95 | 95 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
96 | 96 | */ |
97 | - public function addServer ($host, $port = 11211, $persistent = true, $weight = null, $timeout = 1, $retry_interval = 15, $status = true, callable $failure_callback = null, $timeoutms = null) {} |
|
97 | + public function addServer($host, $port = 11211, $persistent = true, $weight = null, $timeout = 1, $retry_interval = 15, $status = true, callable $failure_callback = null, $timeoutms = null) {} |
|
98 | 98 | |
99 | 99 | /** |
100 | 100 | * (PECL memcache >= 2.1.0)<br/> |
@@ -127,12 +127,12 @@ discard block |
||
127 | 127 | * </p> |
128 | 128 | * @return boolean <p>Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.</p> |
129 | 129 | */ |
130 | - public function setServerParams ($host, $port = 11211, $timeout = 1, $retry_interval = 15, $status = true, callable $failure_callback = null) {} |
|
130 | + public function setServerParams($host, $port = 11211, $timeout = 1, $retry_interval = 15, $status = true, callable $failure_callback = null) {} |
|
131 | 131 | |
132 | 132 | /** |
133 | 133 | * |
134 | 134 | */ |
135 | - public function setFailureCallback () {} |
|
135 | + public function setFailureCallback() {} |
|
136 | 136 | |
137 | 137 | /** |
138 | 138 | * (PECL memcache >= 2.1.0)<br/> |
@@ -142,12 +142,12 @@ discard block |
||
142 | 142 | * @param int $port Point to the port where memcached is listening for connections. |
143 | 143 | * @return int Returns a the servers status. 0 if server is failed, non-zero otherwise |
144 | 144 | */ |
145 | - public function getServerStatus ($host, $port = 11211) {} |
|
145 | + public function getServerStatus($host, $port = 11211) {} |
|
146 | 146 | |
147 | 147 | /** |
148 | 148 | * |
149 | 149 | */ |
150 | - public function findServer () {} |
|
150 | + public function findServer() {} |
|
151 | 151 | |
152 | 152 | /** |
153 | 153 | * (PECL memcache >= 0.2.0)<br/> |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * @link https://php.net/manual/en/memcache.getversion.php |
156 | 156 | * @return string|boolean Returns a string of server version number or <b>FALSE</b> on failure. |
157 | 157 | */ |
158 | - public function getVersion () {} |
|
158 | + public function getVersion() {} |
|
159 | 159 | |
160 | 160 | /** |
161 | 161 | * (PECL memcache >= 2.0.0)<br/> |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | * You can also use Unix timestamp or a number of seconds starting from current time, but in the latter case the number of seconds may not exceed 2592000 (30 days).</p> |
173 | 173 | * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. Returns <b>FALSE</b> if such key already exist. For the rest Memcache::add() behaves similarly to Memcache::set(). |
174 | 174 | */ |
175 | - public function add ($key , $var, $flag = null, $expire = null) {} |
|
175 | + public function add($key, $var, $flag = null, $expire = null) {} |
|
176 | 176 | |
177 | 177 | /** |
178 | 178 | * (PECL memcache >= 0.2.0)<br/> |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | * @param int $expire [optional] Expiration time of the item. If it's equal to zero, the item will never expire. You can also use Unix timestamp or a number of seconds starting from current time, but in the latter case the number of seconds may not exceed 2592000 (30 days). |
188 | 188 | * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. |
189 | 189 | */ |
190 | - public function set ($key, $var, $flag = null, $expire = null) {} |
|
190 | + public function set($key, $var, $flag = null, $expire = null) {} |
|
191 | 191 | |
192 | 192 | /** |
193 | 193 | * (PECL memcache >= 0.2.0)<br/> |
@@ -199,16 +199,16 @@ discard block |
||
199 | 199 | * @param int $expire [optional] <p>Expiration time of the item. If it's equal to zero, the item will never expire. You can also use Unix timestamp or a number of seconds starting from current time, but in the latter case the number of seconds may not exceed 2592000 (30 days).</p> |
200 | 200 | * @return boolean Returns TRUE on success or FALSE on failure. |
201 | 201 | */ |
202 | - public function replace ($key, $var, $flag = null, $expire = null) {} |
|
202 | + public function replace($key, $var, $flag = null, $expire = null) {} |
|
203 | 203 | |
204 | - public function cas () {} |
|
204 | + public function cas() {} |
|
205 | 205 | |
206 | - public function append () {} |
|
206 | + public function append() {} |
|
207 | 207 | |
208 | 208 | /** |
209 | 209 | * @return string |
210 | 210 | */ |
211 | - public function prepend () {} |
|
211 | + public function prepend() {} |
|
212 | 212 | |
213 | 213 | /** |
214 | 214 | * (PECL memcache >= 0.2.0)<br/> |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | * <b>key</b> is an empty {@link https://php.net/manual/en/language.types.array.php array}. |
231 | 231 | * </p> |
232 | 232 | */ |
233 | - public function get ($key, &$flags = null) {} |
|
233 | + public function get($key, &$flags = null) {} |
|
234 | 234 | |
235 | 235 | /** |
236 | 236 | * (PECL memcache >= 0.2.0)<br/> |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | * @param $timeout int [optional] This deprecated parameter is not supported, and defaults to 0 seconds. Do not use this parameter. |
241 | 241 | * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. |
242 | 242 | */ |
243 | - public function delete ($key, $timeout = 0 ) {} |
|
243 | + public function delete($key, $timeout = 0) {} |
|
244 | 244 | |
245 | 245 | /** |
246 | 246 | * (PECL memcache >= 0.2.0)<br/> |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | * </p> |
262 | 262 | * @return array|bool Returns an associative array of server statistics or <b>FALSE</b> on failure. |
263 | 263 | */ |
264 | - public function getStats ($type = null, $slabid = null, $limit = 100) {} |
|
264 | + public function getStats($type = null, $slabid = null, $limit = 100) {} |
|
265 | 265 | |
266 | 266 | /** |
267 | 267 | * (PECL memcache >= 2.0.0)<br/> |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | * Returns a two-dimensional associative array of server statistics or <b>FALSE</b> |
280 | 280 | * on failure. |
281 | 281 | */ |
282 | - public function getExtendedStats ($type = null, $slabid = null, $limit = 100) {} |
|
282 | + public function getExtendedStats($type = null, $slabid = null, $limit = 100) {} |
|
283 | 283 | |
284 | 284 | /** |
285 | 285 | * (PECL memcache >= 2.0.0)<br/> |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | * @param float $min_saving [optional] <p>Specifies the minimum amount of savings to actually store the value compressed. The supplied value must be between 0 and 1. Default value is 0.2 giving a minimum 20% compression savings.</p> |
290 | 290 | * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. |
291 | 291 | */ |
292 | - public function setCompressThreshold ($thresold, $min_saving = 0.2) {} |
|
292 | + public function setCompressThreshold($thresold, $min_saving = 0.2) {} |
|
293 | 293 | /** |
294 | 294 | * (PECL memcache >= 0.2.0)<br/> |
295 | 295 | * Increment item's value |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | * @param $value int [optional] increment the item by <b>value</b> |
299 | 299 | * @return int|boolean Returns new items value on success or <b>FALSE</b> on failure. |
300 | 300 | */ |
301 | - public function increment ($key, $value = 1) {} |
|
301 | + public function increment($key, $value = 1) {} |
|
302 | 302 | |
303 | 303 | /** |
304 | 304 | * (PECL memcache >= 0.2.0)<br/> |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | * @param $value int Decrement the item by <b>value</b>. |
309 | 309 | * @return int|boolean Returns item's new value on success or <b>FALSE</b> on failure. |
310 | 310 | */ |
311 | - public function decrement ($key, $value = 1) {} |
|
311 | + public function decrement($key, $value = 1) {} |
|
312 | 312 | |
313 | 313 | /** |
314 | 314 | * (PECL memcache >= 0.4.0)<br/> |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | * @link https://php.net/manual/en/memcache.close.php |
317 | 317 | * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. |
318 | 318 | */ |
319 | - public function close () {} |
|
319 | + public function close() {} |
|
320 | 320 | |
321 | 321 | /** |
322 | 322 | * (PECL memcache >= 1.0.0)<br/> |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | * @link https://php.net/manual/en/memcache.flush.php |
325 | 325 | * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. |
326 | 326 | */ |
327 | - public function flush () {} |
|
327 | + public function flush() {} |
|
328 | 328 | |
329 | 329 | } |
330 | 330 | |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | * Represents a connection to a set of memcache servers. |
333 | 333 | * @link https://php.net/manual/en/class.memcache.php |
334 | 334 | */ |
335 | -class Memcache extends MemcachePool { |
|
335 | +class Memcache extends MemcachePool { |
|
336 | 336 | |
337 | 337 | |
338 | 338 | /** |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | * </p> |
357 | 357 | * @return mixed a Memcache object or <b>FALSE</b> on failure. |
358 | 358 | */ |
359 | - public function pconnect ($host, $port, $timeout = 1) {} |
|
359 | + public function pconnect($host, $port, $timeout = 1) {} |
|
360 | 360 | } |
361 | 361 | |
362 | 362 | // string $host [, int $port [, int $timeout ]] |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | * </p> |
383 | 383 | * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. |
384 | 384 | */ |
385 | -function memcache_connect ($host, $port, $timeout = 1) {} |
|
385 | +function memcache_connect($host, $port, $timeout = 1) {} |
|
386 | 386 | |
387 | 387 | /** |
388 | 388 | * (PECL memcache >= 0.4.0) |
@@ -394,33 +394,33 @@ discard block |
||
394 | 394 | * @param int $timeout |
395 | 395 | * @return Memcache |
396 | 396 | */ |
397 | -function memcache_pconnect ($host, $port=null, $timeout=1) {} |
|
397 | +function memcache_pconnect($host, $port = null, $timeout = 1) {} |
|
398 | 398 | |
399 | -function memcache_add_server () {} |
|
399 | +function memcache_add_server() {} |
|
400 | 400 | |
401 | -function memcache_set_server_params () {} |
|
401 | +function memcache_set_server_params() {} |
|
402 | 402 | |
403 | -function memcache_set_failure_callback () {} |
|
403 | +function memcache_set_failure_callback() {} |
|
404 | 404 | |
405 | -function memcache_get_server_status () {} |
|
405 | +function memcache_get_server_status() {} |
|
406 | 406 | |
407 | -function memcache_get_version () {} |
|
407 | +function memcache_get_version() {} |
|
408 | 408 | |
409 | -function memcache_add () {} |
|
409 | +function memcache_add() {} |
|
410 | 410 | |
411 | -function memcache_set () {} |
|
411 | +function memcache_set() {} |
|
412 | 412 | |
413 | -function memcache_replace () {} |
|
413 | +function memcache_replace() {} |
|
414 | 414 | |
415 | -function memcache_cas () {} |
|
415 | +function memcache_cas() {} |
|
416 | 416 | |
417 | -function memcache_append () {} |
|
417 | +function memcache_append() {} |
|
418 | 418 | |
419 | -function memcache_prepend () {} |
|
419 | +function memcache_prepend() {} |
|
420 | 420 | |
421 | -function memcache_get () {} |
|
421 | +function memcache_get() {} |
|
422 | 422 | |
423 | -function memcache_delete () {} |
|
423 | +function memcache_delete() {} |
|
424 | 424 | |
425 | 425 | /** |
426 | 426 | * (PECL memcache >= 0.2.0)<br/> |
@@ -433,28 +433,28 @@ discard block |
||
433 | 433 | * @return bool <b>TRUE</b> if PHP was built with --enable-debug option, otherwise |
434 | 434 | * returns <b>FALSE</b>. |
435 | 435 | */ |
436 | -function memcache_debug ($on_off) {} |
|
436 | +function memcache_debug($on_off) {} |
|
437 | 437 | |
438 | -function memcache_get_stats () {} |
|
438 | +function memcache_get_stats() {} |
|
439 | 439 | |
440 | -function memcache_get_extended_stats () {} |
|
440 | +function memcache_get_extended_stats() {} |
|
441 | 441 | |
442 | -function memcache_set_compress_threshold () {} |
|
442 | +function memcache_set_compress_threshold() {} |
|
443 | 443 | |
444 | -function memcache_increment () {} |
|
444 | +function memcache_increment() {} |
|
445 | 445 | |
446 | -function memcache_decrement () {} |
|
446 | +function memcache_decrement() {} |
|
447 | 447 | |
448 | -function memcache_close () {} |
|
448 | +function memcache_close() {} |
|
449 | 449 | |
450 | -function memcache_flush () {} |
|
450 | +function memcache_flush() {} |
|
451 | 451 | |
452 | -define ('MEMCACHE_COMPRESSED', 2); |
|
453 | -define ('MEMCACHE_USER1', 65536); |
|
454 | -define ('MEMCACHE_USER2', 131072); |
|
455 | -define ('MEMCACHE_USER3', 262144); |
|
456 | -define ('MEMCACHE_USER4', 524288); |
|
457 | -define ('MEMCACHE_HAVE_SESSION', 1); |
|
452 | +define('MEMCACHE_COMPRESSED', 2); |
|
453 | +define('MEMCACHE_USER1', 65536); |
|
454 | +define('MEMCACHE_USER2', 131072); |
|
455 | +define('MEMCACHE_USER3', 262144); |
|
456 | +define('MEMCACHE_USER4', 524288); |
|
457 | +define('MEMCACHE_HAVE_SESSION', 1); |
|
458 | 458 | |
459 | 459 | // End of memcache v.3.0.8 |
460 | 460 | ?> |