server/build/.phan/stubs/xcache.php
Lukas Reschke d8ec399454
Run phan over code base
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-07-19 10:28:11 +02:00

217 lines
3.6 KiB
PHP

<?php
/**
* Common Used Functions
*/
/**
* Get cached data by specified name
*
* @param string $name Key name
* @return mixed
*/
function xcache_get($name) {}
/**
* Store data to cache by specified name
*
* @param string $name Key name
* @param mixed $value Value to store
* @param int $ttl TTL in seconds
* @return bool TRUE on success, FALSE otherwise
*/
function xcache_set($name, $value, $ttl = 0) {}
/**
* Check if an entry exists in cache by specified name
*
* @param string $name Key name
* @return bool TRUE if key exists, FALSE otherwise
*/
function xcache_isset($name) {}
/**
* Unset existing data in cache by specified name
*
* @param string $name Key name
* @return bool
*/
function xcache_unset($name) {}
/**
* Unset existing data in cache by specified prefix
*
* @param string $prefix Keys' prefix
* @return bool
*/
function xcache_unset_by_prefix($prefix) {}
/**
* Increase an int counter in cache by specified name, create it if not exists
*
* @param string $name
* @param mixed $value
* @param int $ttl
* @return int
*/
function xcache_inc($name, $value = 1, $ttl = 0) {}
/**
* Decrease an int counter in cache by specified name, create it if not exists
*
* @param string $name
* @param mixed $value
* @param int $ttl
* @return int
*/
function xcache_dec($name, $value = 1, $ttl = 0) {}
/**
* Administrator Functions
*/
/**
* Return count of cache on specified cache type
*
* @param int $type
* @return int
*/
function xcache_count($type) {}
/**
* Get cache info by id on specified cache type
*
* @param int $type
* @param int $id
* @return array
*/
function xcache_info($type, $id) {}
/**
* Get cache entries list by id on specified cache type
*
* @param int $type
* @param int $id
* @return array
*/
function xcache_list($type, $id) {}
/**
* Clear cache by id on specified cache type
*
* @param int $type
* @param int $id
* @return void
*/
function xcache_clear_cache($type, $id = -1) {}
/**
* @param int $op_type
* @return string
*/
function xcache_coredump($op_type) {}
/**
* Coverager Functions
*/
/**
* @param string $data
* @return array
*/
function xcache_coverager_decode($data) {}
/**
* @param bool $clean
* @return void
*/
function xcache_coverager_start($clean = true) {}
/**
* @param bool $clean
* @return void
*/
function xcache_coverager_stop($clean = false) {}
/**
* @param bool $clean
* @return array
*/
function xcache_coverager_get($clean = false) {}
/**
* Opcode Functions
*/
/**
* @param string $filename
* @return string
*/
function xcache_asm($filename) {}
/**
* Disassemble file into opcode array by filename
*
* @param string $filename
* @return string
*/
function xcache_dasm_file($filename) {}
/**
* Disassemble php code into opcode array
*
* @param string $code
* @return string
*/
function xcache_dasm_string($code) {}
/**
* Encode php file into XCache opcode encoded format
*
* @param string $filename
* @return string
*/
function xcache_encode($filename) {}
/**
* Decode(load) opcode from XCache encoded format file
*
* @param string $filename
* @return bool
*/
function xcache_decode($filename) {}
/**
* @param int $op_type
* @return string
*/
function xcache_get_op_type($op_type) {}
/**
* @param int $type
* @return string
*/
function xcache_get_data_type($type) {}
/**
* @param int $opcode
* @return string
*/
function xcache_get_opcode($opcode) {}
/**
* @param int $op_type
* @return string
*/
function xcache_get_op_spec($op_type) {}
/**
* @param int $opcode
* @return string
*/
function xcache_get_opcode_spec($opcode) {}
/**
* @param string $name
* @return string
*/
function xcache_is_autoglobal($name) {}