-
Notifications
You must be signed in to change notification settings - Fork 197
/
php_apc.stub.php
48 lines (32 loc) · 1.26 KB
/
php_apc.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* @generate-function-entries PHP_APCU_API
* @generate-legacy-arginfo
*/
function apcu_clear_cache(): bool {}
function apcu_cache_info(bool $limited = false): array|false {}
function apcu_key_info(string $key): ?array {}
function apcu_sma_info(bool $limited = false): array|false {}
function apcu_enabled(): bool {}
/** @param array|string $key */
function apcu_store($key, mixed $value = UNKNOWN, int $ttl = 0): array|bool {}
/** @param array|string $key */
function apcu_add($key, mixed $value = UNKNOWN, int $ttl = 0): array|bool {}
/** @param bool $success */
function apcu_inc(string $key, int $step = 1, &$success = null, int $ttl = 0): int|false {}
/** @param bool $success */
function apcu_dec(string $key, int $step = 1, &$success = null, int $ttl = 0): int|false {}
function apcu_cas(string $key, int $old, int $new): bool {}
/**
* @param array|string $key
* @param bool $success
*/
function apcu_fetch($key, &$success = null): mixed {}
/** @param array|string $key */
function apcu_exists($key): array|bool {}
/** @param APCUIterator|array|string $key */
function apcu_delete($key): array|bool {}
function apcu_entry(string $key, callable $callback, int $ttl = 0): mixed {}
#ifdef APC_DEBUG
function apcu_inc_request_time(int $by = 1): void {}
#endif