@@ -16,7 +16,7 @@ class Memcached {
16
16
const HASH_MD5 ;
17
17
18
18
const HASH_CRC ;
19
-
19
+
20
20
const HASH_FNV1_64 ;
21
21
22
22
const HASH_FNV1A_64 ;
@@ -34,7 +34,7 @@ class Memcached {
34
34
const DISTRIBUTION_MODULA ;
35
35
36
36
const DISTRIBUTION_CONSISTENT ;
37
-
37
+
38
38
const DISTRIBUTION_VIRTUAL_BUCKET ;
39
39
40
40
const OPT_LIBKETAMA_COMPATIBLE ;
@@ -61,9 +61,9 @@ class Memcached {
61
61
62
62
const OPT_DEAD_TIMEOUT ;
63
63
64
- const OPT_SND_TIMEOUT ;
64
+ const OPT_SEND_TIMEOUT ;
65
65
66
- const OPT_RCV_TIMEOUT ;
66
+ const OPT_RECV_TIMEOUT ;
67
67
68
68
const OPT_POLL_TIMEOUT ;
69
69
@@ -75,14 +75,17 @@ class Memcached {
75
75
76
76
const OPT_AUTO_EJECT_HOSTS ;
77
77
78
- const OPT_NUMBER_OF_REPLICAS ;
79
-
80
78
const OPT_NOREPLY ;
81
79
82
80
const OPT_VERIFY_KEY ;
83
-
81
+
82
+ const OPT_USE_UDP ;
83
+
84
+ const OPT_NUMBER_OF_REPLICAS ;
85
+
84
86
const OPT_RANDOMIZE_REPLICA_READS ;
85
87
88
+ const OPT_REMOVE_FAILED_SERVERS ;
86
89
87
90
/**
88
91
* Supported serializers
@@ -125,9 +128,9 @@ class Memcached {
125
128
/**
126
129
* Compression types
127
130
*/
128
- const COMPRESSION_TYPE_FASTLZ ;
131
+ const COMPRESSION_FASTLZ ;
129
132
130
- const COMPRESSION_TYPE_ZLIB ;
133
+ const COMPRESSION_ZLIB ;
131
134
132
135
/**
133
136
* Flags for get and getMulti operations.
@@ -205,9 +208,57 @@ class Memcached {
205
208
206
209
const RES_CONNECTION_SOCKET_CREATE_FAILURE ;
207
210
211
+ const RES_E2BIG ;
212
+
213
+ const RES_KEY_TOO_BIG ;
214
+
215
+ const RES_SERVER_TEMPORARILY_DISABLED ;
216
+
217
+ const RES_SERVER_MEMORY_ALLOCATION_FAILURE ;
218
+
219
+ const RES_AUTH_PROBLEM ;
220
+
221
+ const RES_AUTH_FAILURE ;
222
+
223
+ const RES_AUTH_CONTINUE ;
224
+
225
+ /** Server callbacks, if compiled with --memcached-protocol */
226
+ const ON_CONNECT ;
227
+ const ON_ADD ;
228
+ const ON_APPEND ;
229
+ const ON_DECREMENT ;
230
+ const ON_DELETE ;
231
+ const ON_FLUSH ;
232
+ const ON_GET ;
233
+ const ON_INCREMENT ;
234
+ const ON_NOOP ;
235
+ const ON_PREPEND ;
236
+ const ON_QUIT ;
237
+ const ON_REPLACE ;
238
+ const ON_SET ;
239
+ const ON_STAT ;
240
+ const ON_VERSION ;
241
+ /** Constants used when compiled with --memcached-protocol */
242
+ const RESPONSE_SUCCESS ;
243
+ const RESPONSE_KEY_ENOENT ;
244
+ const RESPONSE_KEY_EEXISTS ;
245
+ const RESPONSE_E2BIG ;
246
+ const RESPONSE_EINVAL ;
247
+ const RESPONSE_NOT_STORED ;
248
+ const RESPONSE_DELTA_BADVAL ;
249
+ const RESPONSE_NOT_MY_VBUCKET ;
250
+ const RESPONSE_AUTH_ERROR ;
251
+ const RESPONSE_AUTH_CONTINUE ;
252
+ const RESPONSE_UNKNOWN_COMMAND ;
253
+ const RESPONSE_ENOMEM ;
254
+ const RESPONSE_NOT_SUPPORTED ;
255
+ const RESPONSE_EINTERNAL ;
256
+ const RESPONSE_EBUSY ;
257
+ const RESPONSE_ETMPFAIL ;
258
+
208
259
209
260
public function __construct( $ persistent_id = '' , $ on_new_object_cb = null ) {}
210
-
261
+
211
262
public function get ( $ key , callable $ cache_cb = null , $ flags = 0 ) {}
212
263
213
264
public function getByKey ( $ server_key , $ key , callable $ cache_cb = null , $ flags = 0 ) {}
@@ -221,7 +272,7 @@ public function getDelayed( array $keys, $with_cas = null, $value_cb = null ) {}
221
272
public function getDelayedByKey ( $ server_key , array $ keys , $ with_cas = null , $ value_cb = null ) {}
222
273
223
274
public function fetch ( ) {}
224
-
275
+
225
276
public function fetchAll ( ) {}
226
277
227
278
public function set ( $ key , $ value , $ expiration = 0 , $ udf_flags = 0 ) {}
@@ -269,7 +320,7 @@ public function increment( $key, $offset = 1, $initial_value = 0, $expiry = 0) {
269
320
public function decrement ( $ key , $ offset = 1 , $ initial_value = 0 , $ expiry = 0 ) {}
270
321
271
322
public function getOption ( $ option ) {}
272
-
323
+
273
324
public function setOption ( $ option , $ value ) {}
274
325
275
326
public function setOptions ( array $ options ) {}
@@ -299,7 +350,7 @@ public function flushBuffers( ) {}
299
350
public function getStats ( $ type = null ) {}
300
351
301
352
public function getAllKeys ( ) {}
302
-
353
+
303
354
public function getVersion ( ) {}
304
355
305
356
public function getResultCode ( ) {}
0 commit comments