123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- <?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) {}
|