Passed
Push — master ( 6a7898...d69e41 )
by Tim
01:42
created

Memcached::getLastErrorErrno()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 1
rs 10
c 1
b 0
f 0
1
<?php
2
3
// Start of memcached v.3.0.4
4
5
/**
6
 * Represents a connection to a set of memcached servers.
7
 * @link https://php.net/manual/en/class.memcached.php
8
 */
9
class Memcached  {
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;
445
446
	
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 &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $on_new_object_cb is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

501
	public function __construct ($persistent_id = '', /** @scrutinizer ignore-unused */ $on_new_object_cb = null) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $persistent_id is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

501
	public function __construct (/** @scrutinizer ignore-unused */ $persistent_id = '', $on_new_object_cb = null) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
502
503
	/**
504
	 * (PECL memcached &gt;= 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 &gt;= 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 &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $cache_cb is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

536
	public function get ($key, /** @scrutinizer ignore-unused */ callable $cache_cb = null, $flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

536
	public function get (/** @scrutinizer ignore-unused */ $key, callable $cache_cb = null, $flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $flags is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

536
	public function get ($key, callable $cache_cb = null, /** @scrutinizer ignore-unused */ $flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
537
538
	/**
539
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

558
	public function getByKey ($server_key, /** @scrutinizer ignore-unused */ $key, callable $cache_cb = null, $flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $cache_cb is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

558
	public function getByKey ($server_key, $key, /** @scrutinizer ignore-unused */ callable $cache_cb = null, $flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $flags is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

558
	public function getByKey ($server_key, $key, callable $cache_cb = null, /** @scrutinizer ignore-unused */ $flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $server_key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

558
	public function getByKey (/** @scrutinizer ignore-unused */ $server_key, $key, callable $cache_cb = null, $flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
559
560
	/**
561
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $flags is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

573
	public function getMulti (array $keys, /** @scrutinizer ignore-unused */ $flags = null) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $keys is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

573
	public function getMulti (/** @scrutinizer ignore-unused */ array $keys, $flags = null) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
574
575
	/**
576
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $server_key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

591
	public function getMultiByKey (/** @scrutinizer ignore-unused */ $server_key, array $keys, $flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $keys is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

591
	public function getMultiByKey ($server_key, /** @scrutinizer ignore-unused */ array $keys, $flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $flags is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

591
	public function getMultiByKey ($server_key, array $keys, /** @scrutinizer ignore-unused */ $flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
592
593
	/**
594
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $keys is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

609
	public function getDelayed (/** @scrutinizer ignore-unused */ array $keys, $with_cas = null, callable $value_cb = null) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $with_cas is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

609
	public function getDelayed (array $keys, /** @scrutinizer ignore-unused */ $with_cas = null, callable $value_cb = null) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value_cb is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

609
	public function getDelayed (array $keys, $with_cas = null, /** @scrutinizer ignore-unused */ callable $value_cb = null) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
610
611
	/**
612
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $server_key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

630
	public function getDelayedByKey (/** @scrutinizer ignore-unused */ $server_key, array $keys, $with_cas = null, callable $value_cb = null) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $keys is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

630
	public function getDelayedByKey ($server_key, /** @scrutinizer ignore-unused */ array $keys, $with_cas = null, callable $value_cb = null) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $with_cas is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

630
	public function getDelayedByKey ($server_key, array $keys, /** @scrutinizer ignore-unused */ $with_cas = null, callable $value_cb = null) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value_cb is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

630
	public function getDelayedByKey ($server_key, array $keys, $with_cas = null, /** @scrutinizer ignore-unused */ callable $value_cb = null) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
631
632
	/**
633
	 * (PECL memcached &gt;= 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 &gt;= 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 &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $expiration is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

667
	public function set ($key, $value, /** @scrutinizer ignore-unused */ $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $udf_flags is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

667
	public function set ($key, $value, $expiration = 0, /** @scrutinizer ignore-unused */ $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

667
	public function set ($key, /** @scrutinizer ignore-unused */ $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

667
	public function set (/** @scrutinizer ignore-unused */ $key, $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
668
669
	/**
670
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $server_key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

688
	public function setByKey (/** @scrutinizer ignore-unused */ $server_key, $key, $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $udf_flags is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

688
	public function setByKey ($server_key, $key, $value, $expiration = 0, /** @scrutinizer ignore-unused */ $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

688
	public function setByKey ($server_key, /** @scrutinizer ignore-unused */ $key, $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expiration is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

688
	public function setByKey ($server_key, $key, $value, /** @scrutinizer ignore-unused */ $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

688
	public function setByKey ($server_key, $key, /** @scrutinizer ignore-unused */ $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
689
690
	/**
691
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

703
	public function touch (/** @scrutinizer ignore-unused */ $key, $expiration = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expiration is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

703
	public function touch ($key, /** @scrutinizer ignore-unused */ $expiration = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
704
705
	/**
706
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

721
	public function touchByKey ($server_key, /** @scrutinizer ignore-unused */ $key, $expiration) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $server_key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

721
	public function touchByKey (/** @scrutinizer ignore-unused */ $server_key, $key, $expiration) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expiration is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

721
	public function touchByKey ($server_key, $key, /** @scrutinizer ignore-unused */ $expiration) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
722
723
	/**
724
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $udf_flags is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

736
	public function setMulti (array $items, $expiration = 0, /** @scrutinizer ignore-unused */ $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expiration is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

736
	public function setMulti (array $items, /** @scrutinizer ignore-unused */ $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $items is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

736
	public function setMulti (/** @scrutinizer ignore-unused */ array $items, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
737
738
	/**
739
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $udf_flags is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

754
	public function setMultiByKey ($server_key, array $items, $expiration = 0, /** @scrutinizer ignore-unused */ $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $server_key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

754
	public function setMultiByKey (/** @scrutinizer ignore-unused */ $server_key, array $items, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expiration is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

754
	public function setMultiByKey ($server_key, array $items, /** @scrutinizer ignore-unused */ $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $items is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

754
	public function setMultiByKey ($server_key, /** @scrutinizer ignore-unused */ array $items, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
755
756
	/**
757
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

777
	public function cas ($cas_token, /** @scrutinizer ignore-unused */ $key, $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $udf_flags is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

777
	public function cas ($cas_token, $key, $value, $expiration = 0, /** @scrutinizer ignore-unused */ $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

777
	public function cas ($cas_token, $key, /** @scrutinizer ignore-unused */ $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $cas_token is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

777
	public function cas (/** @scrutinizer ignore-unused */ $cas_token, $key, $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expiration is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

777
	public function cas ($cas_token, $key, $value, /** @scrutinizer ignore-unused */ $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
778
779
	/**
780
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $cas_token is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

803
	public function casByKey (/** @scrutinizer ignore-unused */ $cas_token, $server_key, $key, $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $server_key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

803
	public function casByKey ($cas_token, /** @scrutinizer ignore-unused */ $server_key, $key, $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $udf_flags is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

803
	public function casByKey ($cas_token, $server_key, $key, $value, $expiration = 0, /** @scrutinizer ignore-unused */ $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

803
	public function casByKey ($cas_token, $server_key, $key, /** @scrutinizer ignore-unused */ $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expiration is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

803
	public function casByKey ($cas_token, $server_key, $key, $value, /** @scrutinizer ignore-unused */ $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

803
	public function casByKey ($cas_token, $server_key, /** @scrutinizer ignore-unused */ $key, $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
804
805
	/**
806
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $udf_flags is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

822
	public function add ($key, $value, $expiration = 0, /** @scrutinizer ignore-unused */ $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

822
	public function add ($key, /** @scrutinizer ignore-unused */ $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

822
	public function add (/** @scrutinizer ignore-unused */ $key, $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expiration is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

822
	public function add ($key, $value, /** @scrutinizer ignore-unused */ $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
823
824
	/**
825
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $server_key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

844
	public function addByKey (/** @scrutinizer ignore-unused */ $server_key, $key, $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $udf_flags is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

844
	public function addByKey ($server_key, $key, $value, $expiration = 0, /** @scrutinizer ignore-unused */ $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expiration is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

844
	public function addByKey ($server_key, $key, $value, /** @scrutinizer ignore-unused */ $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

844
	public function addByKey ($server_key, /** @scrutinizer ignore-unused */ $key, $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

844
	public function addByKey ($server_key, $key, /** @scrutinizer ignore-unused */ $value, $expiration = 0, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
845
846
	/**
847
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

860
	public function append ($key, /** @scrutinizer ignore-unused */ $value) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

860
	public function append (/** @scrutinizer ignore-unused */ $key, $value) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
861
862
	/**
863
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

879
	public function appendByKey ($server_key, $key, /** @scrutinizer ignore-unused */ $value) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $server_key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

879
	public function appendByKey (/** @scrutinizer ignore-unused */ $server_key, $key, $value) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

879
	public function appendByKey ($server_key, /** @scrutinizer ignore-unused */ $key, $value) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
880
881
	/**
882
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

895
	public function prepend ($key, /** @scrutinizer ignore-unused */ $value) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

895
	public function prepend (/** @scrutinizer ignore-unused */ $key, $value) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
896
897
	/**
898
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

914
	public function prependByKey ($server_key, $key, /** @scrutinizer ignore-unused */ $value) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

914
	public function prependByKey ($server_key, /** @scrutinizer ignore-unused */ $key, $value) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $server_key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

914
	public function prependByKey (/** @scrutinizer ignore-unused */ $server_key, $key, $value) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
915
916
	/**
917
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $udf_flags is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

933
	public function replace ($key, $value, $expiration = null, /** @scrutinizer ignore-unused */ $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expiration is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

933
	public function replace ($key, $value, /** @scrutinizer ignore-unused */ $expiration = null, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

933
	public function replace ($key, /** @scrutinizer ignore-unused */ $value, $expiration = null, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

933
	public function replace (/** @scrutinizer ignore-unused */ $key, $value, $expiration = null, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
934
935
	/**
936
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $server_key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

955
	public function replaceByKey (/** @scrutinizer ignore-unused */ $server_key, $key, $value, $expiration = null, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

955
	public function replaceByKey ($server_key, $key, /** @scrutinizer ignore-unused */ $value, $expiration = null, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

955
	public function replaceByKey ($server_key, /** @scrutinizer ignore-unused */ $key, $value, $expiration = null, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $udf_flags is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

955
	public function replaceByKey ($server_key, $key, $value, $expiration = null, /** @scrutinizer ignore-unused */ $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expiration is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

955
	public function replaceByKey ($server_key, $key, $value, /** @scrutinizer ignore-unused */ $expiration = null, $udf_flags = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
956
957
	/**
958
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

971
	public function delete (/** @scrutinizer ignore-unused */ $key, $time = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $time is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

971
	public function delete ($key, /** @scrutinizer ignore-unused */ $time = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
972
973
	/**
974
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $keys is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

987
	public function deleteMulti (/** @scrutinizer ignore-unused */ array $keys, $time = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $time is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

987
	public function deleteMulti (array $keys, /** @scrutinizer ignore-unused */ $time = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
988
989
	/**
990
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $server_key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1006
	public function deleteByKey (/** @scrutinizer ignore-unused */ $server_key, $key, $time = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $time is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1006
	public function deleteByKey ($server_key, $key, /** @scrutinizer ignore-unused */ $time = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1006
	public function deleteByKey ($server_key, /** @scrutinizer ignore-unused */ $key, $time = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1007
1008
	/**
1009
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $keys is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1025
	public function deleteMultiByKey ($server_key, /** @scrutinizer ignore-unused */ array $keys, $time = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $time is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1025
	public function deleteMultiByKey ($server_key, array $keys, /** @scrutinizer ignore-unused */ $time = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $server_key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1025
	public function deleteMultiByKey (/** @scrutinizer ignore-unused */ $server_key, array $keys, $time = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1026
1027
	/**
1028
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $initial_value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1045
	public function increment ($key, $offset = 1, /** @scrutinizer ignore-unused */ $initial_value = 0, $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expiry is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1045
	public function increment ($key, $offset = 1, $initial_value = 0, /** @scrutinizer ignore-unused */ $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $offset is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1045
	public function increment ($key, /** @scrutinizer ignore-unused */ $offset = 1, $initial_value = 0, $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1045
	public function increment (/** @scrutinizer ignore-unused */ $key, $offset = 1, $initial_value = 0, $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1046
1047
	/**
1048
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $offset is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1065
	public function decrement ($key, /** @scrutinizer ignore-unused */ $offset = 1, $initial_value = 0, $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $initial_value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1065
	public function decrement ($key, $offset = 1, /** @scrutinizer ignore-unused */ $initial_value = 0, $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1065
	public function decrement (/** @scrutinizer ignore-unused */ $key, $offset = 1, $initial_value = 0, $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expiry is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1065
	public function decrement ($key, $offset = 1, $initial_value = 0, /** @scrutinizer ignore-unused */ $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1066
1067
	/**
1068
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1088
	public function incrementByKey ($server_key, /** @scrutinizer ignore-unused */ $key, $offset = 1, $initial_value = 0, $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expiry is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1088
	public function incrementByKey ($server_key, $key, $offset = 1, $initial_value = 0, /** @scrutinizer ignore-unused */ $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $offset is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1088
	public function incrementByKey ($server_key, $key, /** @scrutinizer ignore-unused */ $offset = 1, $initial_value = 0, $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $server_key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1088
	public function incrementByKey (/** @scrutinizer ignore-unused */ $server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $initial_value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1088
	public function incrementByKey ($server_key, $key, $offset = 1, /** @scrutinizer ignore-unused */ $initial_value = 0, $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1089
1090
	/**
1091
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $offset is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1111
	public function decrementByKey ($server_key, $key, /** @scrutinizer ignore-unused */ $offset = 1, $initial_value = 0, $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expiry is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1111
	public function decrementByKey ($server_key, $key, $offset = 1, $initial_value = 0, /** @scrutinizer ignore-unused */ $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $server_key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1111
	public function decrementByKey (/** @scrutinizer ignore-unused */ $server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1111
	public function decrementByKey ($server_key, /** @scrutinizer ignore-unused */ $key, $offset = 1, $initial_value = 0, $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $initial_value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1111
	public function decrementByKey ($server_key, $key, $offset = 1, /** @scrutinizer ignore-unused */ $initial_value = 0, $expiry = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1112
1113
	/**
1114
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $host is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1135
	public function addServer (/** @scrutinizer ignore-unused */ $host, $port, $weight = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $port is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1135
	public function addServer ($host, /** @scrutinizer ignore-unused */ $port, $weight = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $weight is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1135
	public function addServer ($host, $port, /** @scrutinizer ignore-unused */ $weight = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1136
1137
	/**
1138
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $servers is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1144
	public function addServers (/** @scrutinizer ignore-unused */ array $servers) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1145
1146
	/**
1147
	 * (PECL memcached &gt;= 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 &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $server_key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1166
	public function getServerByKey (/** @scrutinizer ignore-unused */ $server_key) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1167
1168
	/**
1169
	 * (PECL memcached &gt;= 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 &gt;= 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 &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $type is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1191
	public function getStats (/** @scrutinizer ignore-unused */ $type = null) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1192
1193
	/**
1194
	 * (PECL memcached &gt;= 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 &gt;= 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 &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $delay is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1219
	public function flush (/** @scrutinizer ignore-unused */ $delay = 0) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1220
1221
	/**
1222
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $option is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1231
	public function getOption (/** @scrutinizer ignore-unused */ $option) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1232
1233
	/**
1234
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1241
	public function setOption ($option, /** @scrutinizer ignore-unused */ $value) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $option is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1241
	public function setOption (/** @scrutinizer ignore-unused */ $option, $value) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1242
1243
	/**
1244
	 * (PECL memcached &gt;= 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) {}
0 ignored issues
show
Unused Code introduced by
The parameter $options is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1253
	public function setOptions (/** @scrutinizer ignore-unused */ array $options) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1254
	
1255
	/**
1256
	 * (PECL memcached &gt;= 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 &gt;= 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 &gt;= 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
1299
}
1300
1301
/**
1302
 * @link https://php.net/manual/en/class.memcachedexception.php
1303
 */
1304
class MemcachedException extends RuntimeException  {
1305
1306
}
1307
// End of memcached v.3.0.4
1308
?>
0 ignored issues
show
Best Practice introduced by
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...
1309