Skip to content

Commit f398c43

Browse files
committed
Update other constants in memcached-api.php
1 parent d4b5ef8 commit f398c43

File tree

1 file changed

+64
-13
lines changed

1 file changed

+64
-13
lines changed

Diff for: memcached-api.php

+64-13
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Memcached {
1616
const HASH_MD5;
1717

1818
const HASH_CRC;
19-
19+
2020
const HASH_FNV1_64;
2121

2222
const HASH_FNV1A_64;
@@ -34,7 +34,7 @@ class Memcached {
3434
const DISTRIBUTION_MODULA;
3535

3636
const DISTRIBUTION_CONSISTENT;
37-
37+
3838
const DISTRIBUTION_VIRTUAL_BUCKET;
3939

4040
const OPT_LIBKETAMA_COMPATIBLE;
@@ -61,9 +61,9 @@ class Memcached {
6161

6262
const OPT_DEAD_TIMEOUT;
6363

64-
const OPT_SND_TIMEOUT;
64+
const OPT_SEND_TIMEOUT;
6565

66-
const OPT_RCV_TIMEOUT;
66+
const OPT_RECV_TIMEOUT;
6767

6868
const OPT_POLL_TIMEOUT;
6969

@@ -75,14 +75,17 @@ class Memcached {
7575

7676
const OPT_AUTO_EJECT_HOSTS;
7777

78-
const OPT_NUMBER_OF_REPLICAS;
79-
8078
const OPT_NOREPLY;
8179

8280
const OPT_VERIFY_KEY;
83-
81+
82+
const OPT_USE_UDP;
83+
84+
const OPT_NUMBER_OF_REPLICAS;
85+
8486
const OPT_RANDOMIZE_REPLICA_READS;
8587

88+
const OPT_REMOVE_FAILED_SERVERS;
8689

8790
/**
8891
* Supported serializers
@@ -125,9 +128,9 @@ class Memcached {
125128
/**
126129
* Compression types
127130
*/
128-
const COMPRESSION_TYPE_FASTLZ;
131+
const COMPRESSION_FASTLZ;
129132

130-
const COMPRESSION_TYPE_ZLIB;
133+
const COMPRESSION_ZLIB;
131134

132135
/**
133136
* Flags for get and getMulti operations.
@@ -205,9 +208,57 @@ class Memcached {
205208

206209
const RES_CONNECTION_SOCKET_CREATE_FAILURE;
207210

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+
208259

209260
public function __construct( $persistent_id = '', $on_new_object_cb = null ) {}
210-
261+
211262
public function get( $key, callable $cache_cb = null, $flags = 0) {}
212263

213264
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 ) {}
221272
public function getDelayedByKey( $server_key, array $keys, $with_cas = null, $value_cb = null ) {}
222273

223274
public function fetch( ) {}
224-
275+
225276
public function fetchAll( ) {}
226277

227278
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) {
269320
public function decrement( $key, $offset = 1, $initial_value = 0, $expiry = 0) {}
270321

271322
public function getOption( $option ) {}
272-
323+
273324
public function setOption( $option, $value ) {}
274325

275326
public function setOptions( array $options ) {}
@@ -299,7 +350,7 @@ public function flushBuffers( ) {}
299350
public function getStats( $type = null ) {}
300351

301352
public function getAllKeys( ) {}
302-
353+
303354
public function getVersion( ) {}
304355

305356
public function getResultCode( ) {}

0 commit comments

Comments
 (0)