|
| 1 | +<?php |
| 2 | + |
| 3 | +/** |
| 4 | + * @generate-function-entries |
| 5 | + * @generate-legacy-arginfo |
| 6 | + */ |
| 7 | + |
| 8 | + |
| 9 | +class Memcached { |
| 10 | + |
| 11 | + public function __construct(string $persistent_id=NULL, callable $callback=NULL, string $connection_str=NULL) {} |
| 12 | + |
| 13 | + public function getResultCode(): int {} |
| 14 | + public function getResultMessage(): string {} |
| 15 | + |
| 16 | + public function get(string $key, callable $cache_cb=NULL, int $get_flags=0): mixed {} |
| 17 | + public function getByKey(string $server_key, string $key, callable $cache_cb=NULL, int $get_flags=0): mixed {} |
| 18 | + public function getMulti(array $keys, int $get_flags=0): false|array {} |
| 19 | + public function getMultiByKey(string $server_key, array $keys, int $get_flags=0): false|array {} |
| 20 | + public function getDelayed(array $keys, bool $with_cas=0, callable $value_cb=NULL): bool {} |
| 21 | + public function getDelayedByKey(string $server_key, array $keys, bool $with_cas=0, callable $value_cb=NULL): bool {} |
| 22 | + public function fetch(): false|array {} |
| 23 | + public function fetchAll(): false|array {} |
| 24 | + |
| 25 | + public function set(string $key, mixed $value, int $expiration=0): bool {} |
| 26 | + public function setByKey(string $server_key, string $key, mixed $value, int $expiration=0): bool {} |
| 27 | + |
| 28 | + public function touch(string $key, int $expiration=0): bool {} |
| 29 | + public function touchByKey(string $server_key, string $key, int $expiration=0): bool {} |
| 30 | + |
| 31 | + public function setMulti(array $items, int $expiration=0): bool {} |
| 32 | + public function setMultiByKey(string $server_key, array $items, int $expiration=0): bool {} |
| 33 | + |
| 34 | + public function cas(string $cas_token, string $key, mixed $value, int $expiration=0): bool {} |
| 35 | + public function casByKey(string $cas_token, string $server_key, string $key, mixed $value, int $expiration=0): bool {} |
| 36 | + public function add(string $key, mixed $value, int $expiration=0): bool {} |
| 37 | + public function addByKey(string $server_key, string $key, mixed $value, int $expiration=0): bool {} |
| 38 | + public function append(string $key, string $value): bool {} |
| 39 | + public function appendByKey(string $server_key, string $key, string $value): bool {} |
| 40 | + public function prepend(string $key, string $value): bool {} |
| 41 | + public function prependByKey(string $server_key, string $key, string $value): bool {} |
| 42 | + public function replace(string $key, mixed $value, int $expiration=0): bool {} |
| 43 | + public function replaceByKey(string $server_key, string $key, mixed $value, int $expiration=0): bool {} |
| 44 | + public function delete(string $key, int $time=0): bool {} |
| 45 | + public function deleteMulti(array $keys, int $time=0): bool {} |
| 46 | + public function deleteByKey(string $server_key, string $key, int $time=0): bool {} |
| 47 | + public function deleteMultiByKey(string $server_key, array $keys, int $time=0): bool {} |
| 48 | + |
| 49 | + public function increment(string $key, int $offset=1, int $initial_value=0, int $expiry=0): false|int {} |
| 50 | + public function decrement(string $key, int $offset=1, int $initial_value=0, int $expiry=0): false|int {} |
| 51 | + public function incrementByKey(string $server_key, string $key, int $offset=1, int $initial_value=0, int $expiry=0): false|int {} |
| 52 | + public function decrementByKey(string $server_key, string $key, int $offset=1, int $initial_value=0, int $expiry=0): false|int {} |
| 53 | + |
| 54 | + public function addServer(string $host, int $port, int $weight=0): bool {} |
| 55 | + public function addServers(array $servers): bool {} |
| 56 | + public function getServerList(): array {} |
| 57 | + public function getServerByKey(string $server_key): false|array {} |
| 58 | + public function resetServerList(): bool {} |
| 59 | + public function quit(): bool {} |
| 60 | + public function flushBuffers(): bool {} |
| 61 | + |
| 62 | + public function getLastErrorMessage(): string {} |
| 63 | + public function getLastErrorCode(): int {} |
| 64 | + public function getLastErrorErrno(): int {} |
| 65 | + public function getLastDisconnectedServer(): false|array {} |
| 66 | + |
| 67 | + public function getStats(string $type=NULL): false|array {} |
| 68 | + public function getVersion(): false|array {} |
| 69 | + public function getAllKeys(): false|array {} |
| 70 | + |
| 71 | + public function flush(int $delay=0): bool {} |
| 72 | + |
| 73 | + public function getOption(int $option): mixed {} |
| 74 | + public function setOption(int $option, mixed $value): bool {} |
| 75 | + public function setOptions(array $options): bool {} |
| 76 | + public function setBucket(array $host_map, array $forward_map, int $replicas): bool {} |
| 77 | +#ifdef HAVE_MEMCACHED_SASL |
| 78 | + public function setSaslAuthData(string $username, string $password): bool {} |
| 79 | +#endif |
| 80 | + |
| 81 | +#ifdef HAVE_MEMCACHED_SET_ENCODING_KEY |
| 82 | + public function setEncodingKey(string $key): bool {} |
| 83 | +#endif |
| 84 | + public function isPersistent(): bool {} |
| 85 | + public function isPristine(): bool {} |
| 86 | +} |
| 87 | + |
| 88 | +#ifdef HAVE_MEMCACHED_PROTOCOL |
| 89 | +class MemcachedServer { |
| 90 | + |
| 91 | + public function run(string $address): bool {} |
| 92 | + public function on(int $event, callable $callback): bool {} |
| 93 | +} |
| 94 | +#endif |
0 commit comments