* The key used to store the value (with * apc_store). If an array is passed then each * element is fetched and returned. *
* @param success bool[optional]* Set to true in success and false in failure. *
* @return mixed The stored variable or array of variables on success; false on failure */ function apc_fetch ($key, &$success = null) {} /** * Cache a variable in the data store * @link http://www.php.net/manual/en/function.apc-store.php * @param key string* Store the variable using this name. keys are * cache-unique, so storing a second value with the same * key will overwrite the original value. *
* @param var mixed* The variable to store *
* @param ttl int[optional]* Time To Live; store var in the cache for * ttl seconds. After the * ttl has passed, the stored variable will be * expunged from the cache (on the next request). If no ttl * is supplied (or if the ttl is * 0), the value will persist until it is removed from * the cache manually, or otherwise fails to exist in the cache (clear, * restart, etc.). *
* @return bool Returns true on success, false on failure. * Second syntax returns array with error keys. */ function apc_store ($key, $var, $ttl = null) {} /** * Cache a new variable in the data store * @link http://www.php.net/manual/en/function.apc-add.php * @param key string* Store the variable using this name. keys are * cache-unique, so attempting to use apc_add to * store data with a key that already exists will not overwrite the * existing data, and will instead return false. (This is the only * difference between apc_add and * apc_store.) *
* @param var mixed* The variable to store *
* @param ttl int[optional]* Time To Live; store var in the cache for * ttl seconds. After the * ttl has passed, the stored variable will be * expunged from the cache (on the next request). If no ttl * is supplied (or if the ttl is * 0), the value will persist until it is removed from * the cache manually, or otherwise fails to exist in the cache (clear, * restart, etc.). *
* @return bool TRUE if something has effectively been added into the cache, FALSE otherwise. * Second syntax returns array with error keys. */ function apc_add ($key, $var, $ttl = null) {} /** * Removes a stored variable from the cache * @link http://www.php.net/manual/en/function.apc-delete.php * @param key string* The key used to store the value (with * apc_store). *
* @return mixed Returns true on success, false on failure. */ function apc_delete ($key) {} /** * Retrieves cached information from APC's data store * @link http://www.php.net/manual/en/function.apc-cache-info.php * @param cache_type string[optional]* If cache_type is "user", * information about the user cache will be returned. *
** If cache_type is "filehits", * information about which files have been served from the bytecode cache * for the current request will be returned. This feature must be enabled at * compile time using --enable-filehits. *
** If an invalid or no cache_type is specified, information about * the system cache (cached files) will be returned. *
* @param limited bool[optional]* If limited is true, the * return value will exclude the individual list of cache entries. This * is useful when trying to optimize calls for statistics gathering. *
* @return array Array of cached data (and meta-data)&return.falseforfailure; */ function apc_cache_info ($cache_type = null, $limited = null) {} /** * Clears the APC cache * @link http://www.php.net/manual/en/function.apc-clear-cache.php * @param cache_type string[optional]* If cache_type is "user", the * user cache will be cleared; otherwise, the system cache (cached files) * will be cleared. *
* @return bool true always */ function apc_clear_cache ($cache_type = null) {} /** * Defines a set of constants for retrieval and mass-definition * @link http://www.php.net/manual/en/function.apc-define-constants.php * @param key string* The key serves as the name of the constant set * being stored. This key is used to retrieve the * stored constants in apc_load_constants. *
* @param constants array* An associative array of constant_name => value * pairs. The constant_name must follow the normal * constant naming rules. * value must evaluate to a scalar value. *
* @param case_sensitive bool[optional]* The default behaviour for constants is to be declared case-sensitive; * i.e. CONSTANT and Constant * represent different values. If this parameter evaluates to false the * constants will be declared as case-insensitive symbols. *
* @return bool Returns true on success, false on failure. */ function apc_define_constants ($key, array $constants, $case_sensitive = null) {} /** * Loads a set of constants from the cache * @link http://www.php.net/manual/en/function.apc-load-constants.php * @param key string* The name of the constant set (that was stored with * apc_define_constants) to be retrieved. *
* @param case_sensitive bool[optional]* The default behaviour for constants is to be declared case-sensitive; * i.e. CONSTANT and Constant * represent different values. If this parameter evaluates to false the * constants will be declared as case-insensitive symbols. *
* @return bool Returns true on success, false on failure. */ function apc_load_constants ($key, $case_sensitive = null) {} /** * Retrieves APC's Shared Memory Allocation information * @link http://www.php.net/manual/en/function.apc-sma-info.php * @param limited bool[optional]* When set to false (default) apc_sma_info will * return a detailed information about each segment. *
* @return array Array of Shared Memory Allocation data; false on failure. */ function apc_sma_info ($limited = null) {} /** * Stores a file in the bytecode cache, bypassing all filters. * @link http://www.php.net/manual/en/function.apc-compile-file.php * @param filename string* Full or relative path to a PHP file that will be compiled and stored in * the bytecode cache. *
* @param atomic bool[optional] * @return mixed Returns true on success, false on failure. */ function apc_compile_file ($filename, $atomic = null) {} /** * Get a binary dump of the given files and user variables * @link http://www.php.net/manual/en/function.apc-bin-dump.php * @param files array[optional]* The files. Passing in &null; signals a dump of every entry, while * passing in array will dump nothing. *
* @param user_vars array[optional]* The user vars. Passing in &null; signals a dump of every entry, while * passing in array will dump nothing. *
* @return string a binary dump of the given files and user variables from the APC cache, * false if APC is not enabled, or &null; if an unknown error is encountered. */ function apc_bin_dump (array $files = null, array $user_vars = null) {} /** * Output a binary dump of cached files and user variables to a file * @link http://www.php.net/manual/en/function.apc-bin-dumpfile.php * @param files array* The file names being dumped. *
* @param user_vars array* The user variables being dumped. *
* @param filename string* The filename where the dump is being saved. *
* @param flags int[optional]* Flags passed to the filename stream. See the * file_put_contents documentation for details. *
* @param context resource[optional]* The context passed to the filename stream. See the * file_put_contents documentation for details. *
* @return int The number of bytes written to the file, otherwise * false if APC is not enabled, filename is an invalid file name, * filename can't be opened, the file dump can't be completed * (e.g., the hard drive is out of disk space), or an unknown error was encountered. */ function apc_bin_dumpfile (array $files, array $user_vars, $filename, $flags = null, $context = null) {} /** * Load a binary dump into the APC file/user cache * @link http://www.php.net/manual/en/function.apc-bin-load.php * @param data string* The binary dump being loaded, likely from * apc_bin_dump. *
* @param flags int[optional]* Either APC_BIN_VERIFY_CRC32, APC_BIN_VERIFY_MD5, * or both. *
* @return bool true if the binary dump data was loaded * with success, otherwise false is returned. false is returned if APC * is not enabled, or if the data is not a valid APC * binary dump (e.g., unexpected size). */ function apc_bin_load ($data, $flags = null) {} /** * Load a binary dump from a file into the APC file/user cache * @link http://www.php.net/manual/en/function.apc-bin-loadfile.php * @param filename string* The file name containing the dump, likely from * apc_bin_dumpfile. *
* @param context resource[optional]* The files context. *
* @param flags int[optional]* Either APC_BIN_VERIFY_CRC32, APC_BIN_VERIFY_MD5, * or both. *
* @return bool true on success, otherwise false Reasons it may return false include * APC is not enabled, filename is an invalid file name or empty, * filename can't be opened, the file dump can't be completed, or * if the data is not a valid APC binary dump (e.g., unexpected * size). */ function apc_bin_loadfile ($filename, $context = null, $flags = null) {} /** * Updates an old value with a new value * @link http://www.php.net/manual/en/function.apc-cas.php * @param key string* The key of the value being updated. *
* @param old int* The old value (the value currently stored). *
* @param new int* The new value to update to. *
* @return bool Returns true on success, false on failure. */ function apc_cas ($key, $old, $new) {} /** * Decrease a stored number * @link http://www.php.net/manual/en/function.apc-dec.php * @param key string* The key of the value being decreased. *
* @param step int[optional]* The step, or value to decrease. *
* @param success bool[optional]* Optionally pass the success or fail boolean value to * this referenced variable. *
* @return int the current value of key's value on success, * &return.falseforfailure; */ function apc_dec ($key, $step = null, &$success = null) {} /** * Deletes files from the opcode cache * @link http://www.php.net/manual/en/function.apc-delete-file.php * @param keys mixed* The files to be deleted. Accepts a string, * array of strings, or an APCIterator * object. *
* @return mixed Returns true on success, false on failure. * Or if keys is an array, then * an empty array is returned on success, or an array of failed files * is returned. */ function apc_delete_file ($keys) {} /** * Checks if APC key exists * @link http://www.php.net/manual/en/function.apc-exists.php * @param keys mixed* A string, or an array of strings, that * contain keys. *
* @return mixed true if the key exists, otherwise false Or if an * array was passed to keys, then * an array is returned that contains all existing keys, or an empty * array if none exist. */ function apc_exists ($keys) {} /** * Increase a stored number * @link http://www.php.net/manual/en/function.apc-inc.php * @param key string* The key of the value being increased. *
* @param step int[optional]* The step, or value to increase. *
* @param success bool[optional]* Optionally pass the success or fail boolean value to * this referenced variable. *
* @return int the current value of key's value on success, * &return.falseforfailure; */ function apc_inc ($key, $step = null, &$success = null) {} // End of apc v. ?>