Skip to content

Commit d4b5ef8

Browse files
Tyson AndreTysonAndre
Tyson Andre
authored andcommitted
Document GET_EXTENDED flag. Add/rename other missing/misnamed constants.
This PR isn't complete, some constants (e.g. `Memcached::ON_*`) are still not documented. It aims to fill in commonly used constants.
1 parent 6b660bd commit d4b5ef8

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

Diff for: memcached-api.php

+25-6
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class Memcached {
1010
*/
1111

1212
const OPT_HASH;
13-
14-
const OPT_HASH_DEFAULT;
13+
14+
const HASH_DEFAULT;
1515

1616
const HASH_MD5;
1717

@@ -37,9 +37,13 @@ class Memcached {
3737

3838
const DISTRIBUTION_VIRTUAL_BUCKET;
3939

40-
const LIBKETAMA_COMPATIBLE;
40+
const OPT_LIBKETAMA_COMPATIBLE;
41+
42+
const OPT_LIBKETAMA_HASH;
4143

42-
const OPT_BUFFER_REQUESTS;
44+
const OPT_TCP_KEEPALIVE;
45+
46+
const OPT_BUFFER_WRITES;
4347

4448
const OPT_BINARY_PROTOCOL;
4549

@@ -81,12 +85,21 @@ class Memcached {
8185

8286

8387
/**
84-
* Class parameters
88+
* Supported serializers
8589
*/
8690
const HAVE_JSON;
8791

8892
const HAVE_IGBINARY;
8993

94+
const HAVE_MSGPACK;
95+
96+
/**
97+
* Feature support
98+
*/
99+
const HAVE_SESSION;
100+
101+
const HAVE_SASL;
102+
90103
/**
91104
* Class options.
92105
*/
@@ -107,6 +120,8 @@ class Memcached {
107120

108121
const SERIALIZER_JSON_ARRAY;
109122

123+
const SERIALIZER_MSGPACK;
124+
110125
/**
111126
* Compression types
112127
*/
@@ -115,10 +130,14 @@ class Memcached {
115130
const COMPRESSION_TYPE_ZLIB;
116131

117132
/**
118-
* Flags
133+
* Flags for get and getMulti operations.
119134
*/
135+
// Whether to preserve key order in the result
120136
const GET_PRESERVE_ORDER;
121137

138+
// Whether to fetch CAS token as well (use "gets").
139+
const GET_EXTENDED;
140+
122141
/**
123142
* Return values
124143
*/

0 commit comments

Comments
 (0)