Merge "Improve docs for Title::getInternalURL/getCanonicalURL"
[lhc/web/wiklou.git] / .phan / internal_stubs / memcached.phan_php
1 <?php
2 // These stubs were generated by the phan stub generator.
3 // @phan-stub-for-extension memcached@3.0.1
4
5 namespace {
6 class Memcached {
7
8 // constants
9 const LIBMEMCACHED_VERSION_HEX = 16777240;
10 const OPT_COMPRESSION = -1001;
11 const OPT_COMPRESSION_TYPE = -1004;
12 const OPT_PREFIX_KEY = -1002;
13 const OPT_SERIALIZER = -1003;
14 const OPT_USER_FLAGS = -1006;
15 const OPT_STORE_RETRY_COUNT = -1005;
16 const HAVE_IGBINARY = true;
17 const HAVE_JSON = true;
18 const HAVE_MSGPACK = true;
19 const HAVE_SESSION = true;
20 const HAVE_SASL = true;
21 const OPT_HASH = 2;
22 const HASH_DEFAULT = 0;
23 const HASH_MD5 = 1;
24 const HASH_CRC = 2;
25 const HASH_FNV1_64 = 3;
26 const HASH_FNV1A_64 = 4;
27 const HASH_FNV1_32 = 5;
28 const HASH_FNV1A_32 = 6;
29 const HASH_HSIEH = 7;
30 const HASH_MURMUR = 8;
31 const OPT_DISTRIBUTION = 9;
32 const DISTRIBUTION_MODULA = 0;
33 const DISTRIBUTION_CONSISTENT = 1;
34 const DISTRIBUTION_VIRTUAL_BUCKET = 6;
35 const OPT_LIBKETAMA_COMPATIBLE = 16;
36 const OPT_LIBKETAMA_HASH = 17;
37 const OPT_TCP_KEEPALIVE = 32;
38 const OPT_BUFFER_WRITES = 10;
39 const OPT_BINARY_PROTOCOL = 18;
40 const OPT_NO_BLOCK = 0;
41 const OPT_TCP_NODELAY = 1;
42 const OPT_SOCKET_SEND_SIZE = 4;
43 const OPT_SOCKET_RECV_SIZE = 5;
44 const OPT_CONNECT_TIMEOUT = 14;
45 const OPT_RETRY_TIMEOUT = 15;
46 const OPT_DEAD_TIMEOUT = 36;
47 const OPT_SEND_TIMEOUT = 19;
48 const OPT_RECV_TIMEOUT = 20;
49 const OPT_POLL_TIMEOUT = 8;
50 const OPT_CACHE_LOOKUPS = 6;
51 const OPT_SERVER_FAILURE_LIMIT = 21;
52 const OPT_AUTO_EJECT_HOSTS = 28;
53 const OPT_HASH_WITH_PREFIX_KEY = 25;
54 const OPT_NOREPLY = 26;
55 const OPT_SORT_HOSTS = 12;
56 const OPT_VERIFY_KEY = 13;
57 const OPT_USE_UDP = 27;
58 const OPT_NUMBER_OF_REPLICAS = 29;
59 const OPT_RANDOMIZE_REPLICA_READ = 30;
60 const OPT_REMOVE_FAILED_SERVERS = 35;
61 const OPT_SERVER_TIMEOUT_LIMIT = 37;
62 const RES_SUCCESS = 0;
63 const RES_FAILURE = 1;
64 const RES_HOST_LOOKUP_FAILURE = 2;
65 const RES_UNKNOWN_READ_FAILURE = 7;
66 const RES_PROTOCOL_ERROR = 8;
67 const RES_CLIENT_ERROR = 9;
68 const RES_SERVER_ERROR = 10;
69 const RES_WRITE_FAILURE = 5;
70 const RES_DATA_EXISTS = 12;
71 const RES_NOTSTORED = 14;
72 const RES_NOTFOUND = 16;
73 const RES_PARTIAL_READ = 18;
74 const RES_SOME_ERRORS = 19;
75 const RES_NO_SERVERS = 20;
76 const RES_END = 21;
77 const RES_ERRNO = 26;
78 const RES_BUFFERED = 32;
79 const RES_TIMEOUT = 31;
80 const RES_BAD_KEY_PROVIDED = 33;
81 const RES_STORED = 15;
82 const RES_DELETED = 22;
83 const RES_STAT = 24;
84 const RES_ITEM = 25;
85 const RES_NOT_SUPPORTED = 28;
86 const RES_FETCH_NOTFINISHED = 30;
87 const RES_SERVER_MARKED_DEAD = 35;
88 const RES_UNKNOWN_STAT_KEY = 36;
89 const RES_INVALID_HOST_PROTOCOL = 34;
90 const RES_MEMORY_ALLOCATION_FAILURE = 17;
91 const RES_CONNECTION_SOCKET_CREATE_FAILURE = 11;
92 const RES_E2BIG = 37;
93 const RES_KEY_TOO_BIG = 39;
94 const RES_SERVER_TEMPORARILY_DISABLED = 47;
95 const RES_SERVER_MEMORY_ALLOCATION_FAILURE = 48;
96 const RES_AUTH_PROBLEM = 40;
97 const RES_AUTH_FAILURE = 41;
98 const RES_AUTH_CONTINUE = 42;
99 const RES_PAYLOAD_FAILURE = -1001;
100 const SERIALIZER_PHP = 1;
101 const SERIALIZER_IGBINARY = 2;
102 const SERIALIZER_JSON = 3;
103 const SERIALIZER_JSON_ARRAY = 4;
104 const SERIALIZER_MSGPACK = 5;
105 const COMPRESSION_FASTLZ = 2;
106 const COMPRESSION_ZLIB = 1;
107 const GET_PRESERVE_ORDER = 1;
108 const GET_EXTENDED = 2;
109 const GET_ERROR_RETURN_VALUE = false;
110
111 // methods
112 public function __construct($persistent_id = null, $callback = null) {}
113 public function getResultCode() {}
114 public function getResultMessage() {}
115 public function get($key, $cache_cb = null, $get_flags = null) {}
116 public function getByKey($server_key, $key, $cache_cb = null, $get_flags = null) {}
117 public function getMulti(array $keys, $get_flags = null) {}
118 public function getMultiByKey($server_key, array $keys, $get_flags = null) {}
119 public function getDelayed(array $keys, $with_cas = null, $value_cb = null) {}
120 public function getDelayedByKey($server_key, array $keys, $with_cas = null, $value_cb = null) {}
121 public function fetch() {}
122 public function fetchAll() {}
123 public function set($key, $value, $expiration = null) {}
124 public function setByKey($server_key, $key, $value, $expiration = null) {}
125 public function touch($key, $expiration) {}
126 public function touchByKey($server_key, $key, $expiration) {}
127 public function setMulti(array $items, $expiration = null) {}
128 public function setMultiByKey($server_key, array $items, $expiration = null) {}
129 public function cas($cas_token, $key, $value, $expiration = null) {}
130 public function casByKey($cas_token, $server_key, $key, $value, $expiration = null) {}
131 public function add($key, $value, $expiration = null) {}
132 public function addByKey($server_key, $key, $value, $expiration = null) {}
133 public function append($key, $value, $expiration = null) {}
134 public function appendByKey($server_key, $key, $value, $expiration = null) {}
135 public function prepend($key, $value, $expiration = null) {}
136 public function prependByKey($server_key, $key, $value, $expiration = null) {}
137 public function replace($key, $value, $expiration = null) {}
138 public function replaceByKey($server_key, $key, $value, $expiration = null) {}
139 public function delete($key, $time = null) {}
140 public function deleteMulti($keys, $time = null) {}
141 public function deleteByKey($server_key, $key, $time = null) {}
142 public function deleteMultiByKey($server_key, $keys, $time = null) {}
143 public function increment($key, $offset = null, $initial_value = null, $expiry = null) {}
144 public function decrement($key, $offset = null, $initial_value = null, $expiry = null) {}
145 public function incrementByKey($server_key, $key, $offset = null, $initial_value = null, $expiry = null) {}
146 public function decrementByKey($server_key, $key, $offset = null, $initial_value = null, $expiry = null) {}
147 public function addServer($host, $port, $weight = null) {}
148 public function addServers(array $servers) {}
149 public function getServerList() {}
150 public function getServerByKey($server_key) {}
151 public function resetServerList() {}
152 public function quit() {}
153 public function flushBuffers() {}
154 public function getLastErrorMessage() {}
155 public function getLastErrorCode() {}
156 public function getLastErrorErrno() {}
157 public function getLastDisconnectedServer() {}
158 public function getStats($args) {}
159 public function getVersion() {}
160 public function getAllKeys() {}
161 public function flush($delay = null) {}
162 public function getOption($option) {}
163 public function setOption($option, $value) {}
164 public function setOptions($options) {}
165 public function setBucket($host_map, $forward_map, $replicas) {}
166 public function setSaslAuthData($username, $password) {}
167 public function isPersistent() {}
168 public function isPristine() {}
169 }
170
171 class MemcachedException extends \RuntimeException {
172
173 // properties
174 protected $message;
175 protected $code;
176 protected $file;
177 protected $line;
178 }
179
180 }