@@ -10,13 +10,13 @@ class Memcached {
10
10
*/
11
11
12
12
const OPT_HASH ;
13
-
14
- const OPT_HASH_DEFAULT ;
13
+
14
+ const HASH_DEFAULT ;
15
15
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,12 +34,16 @@ 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
- const LIBKETAMA_COMPATIBLE ;
40
+ const OPT_LIBKETAMA_COMPATIBLE ;
41
41
42
- const OPT_BUFFER_REQUESTS ;
42
+ const OPT_LIBKETAMA_HASH ;
43
+
44
+ const OPT_TCP_KEEPALIVE ;
45
+
46
+ const OPT_BUFFER_WRITES ;
43
47
44
48
const OPT_BINARY_PROTOCOL ;
45
49
@@ -57,9 +61,9 @@ class Memcached {
57
61
58
62
const OPT_DEAD_TIMEOUT ;
59
63
60
- const OPT_SND_TIMEOUT ;
64
+ const OPT_SEND_TIMEOUT ;
61
65
62
- const OPT_RCV_TIMEOUT ;
66
+ const OPT_RECV_TIMEOUT ;
63
67
64
68
const OPT_POLL_TIMEOUT ;
65
69
@@ -71,22 +75,34 @@ class Memcached {
71
75
72
76
const OPT_AUTO_EJECT_HOSTS ;
73
77
74
- const OPT_NUMBER_OF_REPLICAS ;
75
-
76
78
const OPT_NOREPLY ;
77
79
78
80
const OPT_VERIFY_KEY ;
79
-
81
+
82
+ const OPT_USE_UDP ;
83
+
84
+ const OPT_NUMBER_OF_REPLICAS ;
85
+
80
86
const OPT_RANDOMIZE_REPLICA_READS ;
81
87
88
+ const OPT_REMOVE_FAILED_SERVERS ;
82
89
83
90
/**
84
- * Class parameters
91
+ * Supported serializers
85
92
*/
86
93
const HAVE_JSON ;
87
94
88
95
const HAVE_IGBINARY ;
89
96
97
+ const HAVE_MSGPACK ;
98
+
99
+ /**
100
+ * Feature support
101
+ */
102
+ const HAVE_SESSION ;
103
+
104
+ const HAVE_SASL ;
105
+
90
106
/**
91
107
* Class options.
92
108
*/
@@ -107,18 +123,24 @@ class Memcached {
107
123
108
124
const SERIALIZER_JSON_ARRAY ;
109
125
126
+ const SERIALIZER_MSGPACK ;
127
+
110
128
/**
111
129
* Compression types
112
130
*/
113
- const COMPRESSION_TYPE_FASTLZ ;
131
+ const COMPRESSION_FASTLZ ;
114
132
115
- const COMPRESSION_TYPE_ZLIB ;
133
+ const COMPRESSION_ZLIB ;
116
134
117
135
/**
118
- * Flags
136
+ * Flags for get and getMulti operations.
119
137
*/
138
+ // Whether to preserve key order in the result
120
139
const GET_PRESERVE_ORDER ;
121
140
141
+ // Whether to fetch CAS token as well (use "gets").
142
+ const GET_EXTENDED ;
143
+
122
144
/**
123
145
* Return values
124
146
*/
@@ -186,9 +208,57 @@ class Memcached {
186
208
187
209
const RES_CONNECTION_SOCKET_CREATE_FAILURE ;
188
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
+
189
259
190
260
public function __construct( $ persistent_id = '' , $ on_new_object_cb = null ) {}
191
-
261
+
192
262
public function get ( $ key , callable $ cache_cb = null , $ flags = 0 ) {}
193
263
194
264
public function getByKey ( $ server_key , $ key , callable $ cache_cb = null , $ flags = 0 ) {}
@@ -202,7 +272,7 @@ public function getDelayed( array $keys, $with_cas = null, $value_cb = null ) {}
202
272
public function getDelayedByKey ( $ server_key , array $ keys , $ with_cas = null , $ value_cb = null ) {}
203
273
204
274
public function fetch ( ) {}
205
-
275
+
206
276
public function fetchAll ( ) {}
207
277
208
278
public function set ( $ key , $ value , $ expiration = 0 , $ udf_flags = 0 ) {}
@@ -250,7 +320,7 @@ public function increment( $key, $offset = 1, $initial_value = 0, $expiry = 0) {
250
320
public function decrement ( $ key , $ offset = 1 , $ initial_value = 0 , $ expiry = 0 ) {}
251
321
252
322
public function getOption ( $ option ) {}
253
-
323
+
254
324
public function setOption ( $ option , $ value ) {}
255
325
256
326
public function setOptions ( array $ options ) {}
@@ -280,7 +350,7 @@ public function flushBuffers( ) {}
280
350
public function getStats ( $ type = null ) {}
281
351
282
352
public function getAllKeys ( ) {}
283
-
353
+
284
354
public function getVersion ( ) {}
285
355
286
356
public function getResultCode ( ) {}
0 commit comments