* Retrieves information about files cached in the file cache
* @link https://secure.php.net/manual/en/function.wincache-fcache-fileinfo.php
* @param bool $summaryonly [optional]
*
Controls whether the returned array will contain information about individual
* cache entries along with the file cache summary.
* @return array|false Array of meta data about file cache or FALSE on failure
* The array returned by this function contains the following elements:
*
* - total_cache_uptime - total time in seconds that the file cache has been active
* - total_file_count - total number of files that are currently in the file cache
* - total_hit_count - number of times the files have been served from the file cache
* - total_miss_count - number of times the files have not been found in the file cache
* - file_entries - an array that contains the information about all the cached files:
*
* - file_name - absolute file name of the cached file
* - add_time - time in seconds since the file has been added to the file cache
* - use_time - time in seconds since the file has been accessed in the file cache
* - last_check - time in seconds since the file has been checked for modifications
* - hit_count - number of times the file has been served from the cache
* - file_size - size of the cached file in bytes
*
*
*/
function wincache_fcache_fileinfo($summaryonly = false) {}
/**
* (PHP 5.2+; PECL wincache >= 1.0.0)
* Retrieves information about memory usage by file cache.
* @link https://secure.php.net/manual/en/function.wincache-fcache-meminfo.php
* @return array|false Array of meta data about file cache memory usage or FALSE on failure
* The array returned by this function contains the following elements:
*
* - memory_total - amount of memory in bytes allocated for the file cache
* - memory_free - amount of free memory in bytes available for the file cache
* - num_used_blks - number of memory blocks used by the file cache
* - num_free_blks - number of free memory blocks available for the file cache
* - memory_overhead - amount of memory in bytes used for the file cache internal structures
*
*/
function wincache_fcache_meminfo() {}
/**
* (PHP 5.2+; PECL wincache >= 1.1.0)
* Obtains an exclusive lock on a given key.
* The execution of the current script will be blocked until the lock can be
* obtained. Once the lock is obtained, the other scripts that try to request the
* lock by using the same key will be blocked, until the current script releases
* the lock by using wincache_unlock().
* @link https://secure.php.net/manual/en/function.wincache-lock.php
* @param string $key Name of the key in the cache to get the lock on.
* @param bool $isglobal [optional]
* Controls whether the scope of the lock is system-wide or local. Local locks
* are scoped to the application pool in IIS FastCGI case or to all php processes
* that have the same parent process identifier.
* @return bool Returns TRUE on success or FALSE on failure.
*/
function wincache_lock($key, $isglobal = false) {}
/**
* (PHP 5.2+; PECL wincache >= 1.0.0)
* Retrieves information about opcode cache content and its usage
* @link https://secure.php.net/manual/en/function.wincache-ocache-fileinfo.php
* @param bool $summaryonly [optional]
* Controls whether the returned array will contain information about individual
* cache entries along with the opcode cache summary.
* @return array|false Array of meta data about opcode cache or FALSE on failure
* The array returned by this function contains the following elements:
*
* - total_cache_uptime - total time in seconds that the opcode cache has been active
* - total_file_count - total number of files that are currently in the opcode cache
* - total_hit_count - number of times the compiled opcode have been served from the cache
* - total_miss_count - number of times the compiled opcode have not been found in the cache
* - is_local_cache - true is the cache metadata is for a local cache instance, false
* if the metadata is for the global cache
* - file_entries - an array that contains the information about all the cached files:
*
* - file_name - absolute file name of the cached file
* - add_time - time in seconds since the file has been added to the opcode cache
* - use_time - time in seconds since the file has been accessed in the opcode cache
* - last_check - time in seconds since the file has been checked for modifications
* - hit_count - number of times the file has been served from the cache
* - function_count - number of functions in the cached file
* - class_count - number of classes in the cached file
*
*
*/
function wincache_ocache_fileinfo($summaryonly = false) {}
/**
* (PHP 5.2+; PECL wincache >= 1.0.0)
* Retrieves information about memory usage by opcode cache.
* @link https://secure.php.net/manual/en/function.wincache-ocache-meminfo.php
* @return array|false Array of meta data about opcode cache memory usage or FALSE on failure
* The array returned by this function contains the following elements:
*
* - memory_total - amount of memory in bytes allocated for the opcode cache
* - memory_free - amount of free memory in bytes available for the opcode cache
* - num_used_blks - number of memory blocks used by the opcode cache
* - num_free_blks - number of free memory blocks available for the opcode cache
* - memory_overhead - amount of memory in bytes used for the opcode cache internal structures
*
*/
function wincache_ocache_meminfo() {}
/**
* (PHP 5.2+; PECL wincache >= 1.0.0)
* Refreshes the cache entries for the files, whose names were passed in the input argument.
* If no argument is specified then refreshes all the entries in the cache.
* @link https://secure.php.net/manual/en/function.wincache-refresh-if-changed.php
* @param array $files [optional]
* An array of file names for files that need to be refreshed. An absolute
* or relative file paths can be used.
* @return bool Returns TRUE on success or FALSE on failure.
*/
function wincache_refresh_if_changed(array $files) {}
/**
* (PHP 5.2+; PECL wincache >= 1.0.0)
* Retrieves information about cached mappings between relative file paths and
* corresponding absolute file paths.
* @link https://secure.php.net/manual/en/function.wincache-rplist-fileinfo.php
* @return array|false Array of meta data about the resolve file path cache or FALSE on failure
* The array returned by this function contains the following elements:
*
* - total_file_count - total number of file path mappings stored in the cache
* - rplist_entries - an array that contains the information about all the cached file paths:
*
* - resolve_path - path to a file
* - subkey_data - corresponding absolute path to a file
*
*
*/
function wincache_rplist_fileinfo() {}
/**
* (PHP 5.2+; PECL wincache >= 1.0.0)
* Retrieves information about memory usage by resolve file path cache.
* @link https://secure.php.net/manual/en/function.wincache-rplist-meminfo.php
* @return array|false Array of meta data that describes memory usage by resolve file path cache. or FALSE on failure
* The array returned by this function contains the following elements:
*
* - memory_total - amount of memory in bytes allocated for the resolve file path cache
* - memory_free - amount of free memory in bytes available for the resolve file path cache
* - num_used_blks - number of memory blocks used by the resolve file path cache
* - num_free_blks - number of free memory blocks available for the resolve file path cache
* - memory_overhead - amount of memory in bytes used for the internal structures of resolve file path cache
*
*/
function wincache_rplist_meminfo() {}
/**
* (PHP 5.2+; PECL wincache >= 1.1.0)
* Retrieves information about session cache content and its usage.
* @link https://secure.php.net/manual/en/function.wincache-scache-info.php
* @param bool $summaryonly [optional]
* Controls whether the returned array will contain information about individual
* cache entries along with the session cache summary.
* @return array|false Array of meta data about session cache or FALSE on failure
* The array returned by this function contains the following elements:
*
* - total_cache_uptime - total time in seconds that the session cache has been active
* - total_item_count - total number of elements that are currently in the session cache
* - is_local_cache - true is the cache metadata is for a local cache instance, false
* if the metadata is for the global cache
* - total_hit_count - number of times the data has been served from the cache
* - total_miss_count - number of times the data has not been found in the cache
* - scache_entries - an array that contains the information about all the cached items:
*
* - key_name - name of the key which is used to store the data
* - value_type - type of value stored by the key
* - use_time - time in seconds since the file has been accessed in the opcode cache
* - last_check - time in seconds since the file has been checked for modifications
* - ttl_seconds - time remaining for the data to live in the cache, 0 meaning infinite
* - age_seconds - time elapsed from the time data has been added in the cache
* - hitcount - number of times data has been served from the cache
*
*
*/
function wincache_scache_info($summaryonly = false) {}
/**
* (PHP 5.2+; PECL wincache >= 1.1.0)
* Retrieves information about memory usage by session cache.
* @link https://secure.php.net/manual/en/function.wincache-scache-meminfo.php
* @return array|false Array of meta data about session cache memory usage or FALSE on failure
* The array returned by this function contains the following elements:
*
* - memory_total - amount of memory in bytes allocated for the session cache
* - memory_free - amount of free memory in bytes available for the session cache
* - num_used_blks - number of memory blocks used by the session cache
* - num_free_blks - number of free memory blocks available for the session cache
* - memory_overhead - amount of memory in bytes used for the session cache internal structures
*
*/
function wincache_scache_meminfo() {}
/**
* (PHP 5.2+; PECL wincache >= 1.1.0)
* Adds a variable in user cache, only if this variable doesn't already exist in the cache.
* The added variable remains in the user cache unless its time to live expires
* or it is deleted by using wincache_ucache_delete() or wincache_ucache_clear() functions.
* @link https://secure.php.net/manual/en/function.wincache-ucache-add.php
* @param string $key Store the variable using this key name. If a variable with
* same key is already present the function will fail and return FALSE. key is case
* sensitive. To override the value even if key is present use wincache_ucache_set()
* function instad. key can also take array of name => value pairs where names will
* be used as keys. This can be used to add multiple values in the cache in one
* operation, thus avoiding race condition.
* @param mixed $value Value of a variable to store. Value supports all data
* types except resources, such as file handles. This parameter is ignored if
* first argument is an array. A general guidance is to pass NULL as value while
* using array as key.
* @param int $ttl [optional]
* Time for the variable to live in the cache in seconds. After the value
* specified in ttl has passed the stored variable will be deleted from the
* cache. This parameter takes a default value of 0 which means the variable
* will stay in the cache unless explicitly deleted by using wincache_ucache_delete()
* or wincache_ucache_clear() functions.
* @return bool If key is string, the function returns TRUE on success and FALSE on failure.
* If key is an array, the function returns:
*
* - If all the name => value pairs in the array can be set, function returns an empty array;
* - If all the name => value pairs in the array cannot be set, function returns FALSE;
* - If some can be set while others cannot, function returns an array with name=>value pair
* for which the addition failed in the user cache.
*
*/
function wincache_ucache_add($key, $value, $ttl = 0) {}
/**
* (PHP 5.2+; PECL wincache >= 1.1.0)
* Compares the variable associated with the key with old_value
* and if it matches then assigns the new_value to it.
* @link https://secure.php.net/manual/en/function.wincache-ucache-cas.php
* @param string $key The key that is used to store the variable in the cache. key is case sensitive.
* @param int $old_value Old value of the variable pointed by key in the user cache.
* The value should be of type long, otherwise the function returns FALSE.
* @param int $new_value New value which will get assigned to variable pointer by key
* if a match is found. The value should be of type long, otherwise the function returns FALSE.
* @return bool Returns TRUE on success or FALSE on failure.
*/
function wincache_ucache_cas($key, $old_value, $new_value) {}
/**
* (PHP 5.2+; PECL wincache >= 1.1.0)
* Clears/deletes all the values stored in the user cache.
* @link https://secure.php.net/manual/en/function.wincache-ucache-clear.php
* @return bool Returns TRUE on success or FALSE on failure.
*/
function wincache_ucache_clear() {}
/**
* (PHP 5.2+; PECL wincache >= 1.1.0)
* Decrements the value associated with the key by 1 or as specified by dec_by.
* @link https://secure.php.net/manual/en/function.wincache-ucache-dec.php
* @param string $key The key that was used to store the variable in the cache.
* key is case sensitive.
* @param int $dec_by The value by which the variable associated with the key will
* get decremented. If the argument is a floating point number it will be truncated
* to nearest integer. The variable associated with the key should be of type long,
* otherwise the function fails and returns FALSE.
* @param bool|null &$success [optional]
* Will be set to TRUE on success and FALSE on failure.
* @return int|false Returns the decremented value on success and FALSE on failure.
*/
function wincache_ucache_dec($key, $dec_by = 1, &$success) {}
/**
* (PHP 5.2+; PECL wincache >= 1.1.0)
* Deletes the elements in the user cache pointed by key.
* @link https://secure.php.net/manual/en/function.wincache-ucache-delete.php
* @param string|string[] $key The key that was used to store the variable in the cache.
* key is case sensitive. key can be an array of keys.
* @return bool Returns TRUE on success or FALSE on failure.
* If key is an array then the function returns FALSE if every element of
* the array fails to get deleted from the user cache, otherwise returns an
* array which consists of all the keys that are deleted.
*/
function wincache_ucache_delete($key) {}
/**
* (PHP 5.2+; PECL wincache >= 1.1.0)
* Checks if a variable with the key exists in the user cache or not.
* @link https://secure.php.net/manual/en/function.wincache-ucache-exists.php
* @param string $key The key that was used to store the variable in the cache. key is case sensitive.
* @return bool Returns TRUE if variable with the key exitsts, otherwise returns FALSE.
*/
function wincache_ucache_exists($key) {}
/**
* (PHP 5.2+; PECL wincache >= 1.1.0)
* Gets a variable stored in the user cache.
* @link https://secure.php.net/manual/en/function.wincache-ucache-get.php
* @param string|string[] $key The key that was used to store the variable in the cache.
* key is case sensitive. key can be an array of keys. In this case the return
* value will be an array of values of each element in the key array.
* @param bool|null &$success [optional]
* Will be set to TRUE on success and FALSE on failure.
* @return mixed If key is a string, the function returns the value of the variable
* stored with that key. The success is set to TRUE on success and to FALSE on failure.
* The key is an array, the parameter success is always set to TRUE. The returned array
* (name => value pairs) will contain only those name => value pairs for which the get
* operation in user cache was successful. If none of the keys in the key array finds a
* match in the user cache an empty array will be returned.
*/
function wincache_ucache_get($key, &$success) {}
/**
* (PHP 5.2+; PECL wincache >= 1.1.0)
* Increments the value associated with the key by 1 or as specified by inc_by.
* @link https://secure.php.net/manual/en/function.wincache-ucache-inc.php
* @param string $key The key that was used to store the variable in the cache.
* key is case sensitive.
* @param int $inc_by The value by which the variable associated with the key will
* get incremented. If the argument is a floating point number it will be truncated
* to nearest integer. The variable associated with the key should be of type long,
* otherwise the function fails and returns FALSE.
* @param bool|null &$success [optional]
* Will be set to TRUE on success and FALSE on failure.
* @return int|false Returns the incremented value on success and FALSE on failure.
*/
function wincache_ucache_inc($key, $inc_by = 1, &$success) {}
/**
* (PHP 5.2+; PECL wincache >= 1.1.0)
* Retrieves information about data stored in the user cache.
* @link https://secure.php.net/manual/en/function.wincache-ucache-info.php
* @param bool $summaryonly [optional]
* Controls whether the returned array will contain information about
* individual cache entries along with the user cache summary.
* @param null|string $key [optional]
* The key of an entry in the user cache. If specified then the returned array
* will contain information only about that cache entry. If not specified and
* summaryonly is set to false then the returned array will contain information
* about all entries in the cache.
* @return array|false Array of meta data about user cache or FALSE on failure
* The array returned by this function contains the following elements:
*
* - total_cache_uptime - total time in seconds that the user cache has been active
* - total_item_count - total number of elements that are currently in the user cache
* - is_local_cache - true is the cache metadata is for a local cache instance, false
* if the metadata is for the global cache
* - total_hit_count - number of times the data has been served from the cache
* - total_miss_count - number of times the data has not been found in the cache
* - ucache_entries - an array that contains the information about all the cached items:
*
* - key_name - name of the key which is used to store the data
* - value_type - type of value stored by the key
* - use_time - time in seconds since the file has been accessed in the opcode cache
* - last_check - time in seconds since the file has been checked for modifications
* - is_session - indicates if the data is a session variable
* - ttl_seconds - time remaining for the data to live in the cache, 0 meaning infinite
* - age_seconds - time elapsed from the time data has been added in the cache
* - hitcount - number of times data has been served from the cache
*
*
*/
function wincache_ucache_info(bool $summaryonly = false, $key = null) {}
/**
* (PHP 5.2+; PECL wincache >= 1.1.0)
* Retrieves information about memory usage by user cache.
* @link https://secure.php.net/manual/en/function.wincache-ucache-meminfo.php
* @return array|false Array of meta data about user cache memory usage or FALSE on failure
* The array returned by this function contains the following elements:
*
* - memory_total - amount of memory in bytes allocated for the user cache
* - memory_free - amount of free memory in bytes available for the user cache
* - num_used_blks - number of memory blocks used by the user cache
* - num_free_blks - number of free memory blocks available for the user cache
* - memory_overhead - amount of memory in bytes used for the user cache internal structures
*
*/
function wincache_ucache_meminfo() {}
/**
* (PHP 5.2+; PECL wincache >= 1.1.0)
* Adds a variable in user cache and overwrites a variable if it already exists in the cache.
* The added or updated variable remains in the user cache unless its time to
* live expires or it is deleted by using wincache_ucache_delete() or
* wincache_ucache_clear() functions.
* @link https://secure.php.net/manual/en/function.wincache-ucache-set.php
* @param string|string[] $key
* Store the variable using this key name. If a variable with same key is already
* present the function will overwrite the previous value with the new one. key
* is case sensitive. key can also take array of name => value pairs where
* names will be used as keys. This can be used to add multiple values in the
* cache in one operation, thus avoiding race condition.
* @param mixed $value
* Value of a variable to store. Value supports all data types except resources,
* such as file handles. This parameter is ignored if first argument is an array.
* A general guidance is to pass NULL as value while using array as key.
* @param int $ttl [optional]
* Time for the variable to live in the cache in seconds. After the value specified
* in ttl has passed the stored variable will be deleted from the cache. This
* parameter takes a default value of 0 which means the variable will stay in the
* cache unless explicitly deleted by using wincache_ucache_delete() or
* wincache_ucache_clear() functions.
* @return bool
* If key is string, the function returns TRUE on success and FALSE on failure.
* If key is an array, the function returns:
*
* - If all the name => value pairs in the array can be set, function
* returns an empty array;
* - If all the name => value pairs in the array cannot be set, function
* returns FALSE;
* - If some can be set while others cannot, function returns an array with
* name=>value pair for which the addition failed in the user cache.
*
*/
function wincache_ucache_set($key, $value, $ttl = 0) {}
/**
* (PHP 5.2+; PECL wincache >= 1.1.0)
* Releases an exclusive lock that was obtained on a given key by using wincache_lock().
* If any other process was blocked waiting for the lock on this key, that process will be able to obtain the lock.
* @link https://secure.php.net/manual/en/function.wincache-unlock.php
* @param string $key Name of the key in the cache to release the lock on.
* @return bool Returns TRUE on success or FALSE on failure.
*/
function wincache_unlock($key) {}