wincache_ucache_cas

(PECL wincache >= 1.1.0) Compares the variable with old value and assigns new value to it bool wincache_ucache_cas ( string $key, int $old_value, int $new_value ) Compares the variable associated with the key with old_value and if it matches then assigns the new_value to it. Parameters: key The key that is used to store the variable in the cache. key is case sensitiv

wincache_ucache_clear

(PECL wincache >= 1.1.0) Deletes entire content of the user cache bool wincache_ucache_clear ( void ) Clears/deletes all the values stored in the user cache. Returns: Returns TRUE on success or FALSE on failure. Examples: using wincache_ucache_clear() <?php wincache_ucache_set('green', 1); wincache_ucache_set('red

wincache_ucache_dec

(PECL wincache >= 1.1.0) Decrements the value associated with the key mixed wincache_ucache_dec ( string $key [, int $dec_by = 1 [, bool &$success ]] ) Decrements the value associated with the key by 1 or as specified by dec_by. Parameters: key The key that was used to store the variable in the cache. key is case sensitive. dec_by

wincache_ucache_delete

(PECL wincache >= 1.1.0) Deletes variables from the user cache bool wincache_ucache_delete ( mixed $key ) Deletes the elements in the user cache pointed by key. Parameters: key The key that was used to store the variable in the cache. key is case sensitive. key can be an array of keys. Returns: Returns TRUE on success or FALSE on failure.

wincache_ucache_exists

(PECL wincache >= 1.1.0) Checks if a variable exists in the user cache bool wincache_ucache_exists ( string $key ) Checks if a variable with the key exists in the user cache or not. Parameters: key The key that was used to store the variable in the cache. key is case sensitive. Returns: Returns TRUE if variable with the key exitsts, otherwis

wincache_ucache_get

(PECL wincache >= 1.1.0) Gets a variable stored in the user cache mixed wincache_ucache_get ( mixed $key [, bool &$success ] ) Gets a variable stored in the user cache. Parameters: 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 eleme

wincache_ucache_inc

(PECL wincache >= 1.1.0) Increments the value associated with the key mixed wincache_ucache_inc ( string $key [, int $inc_by = 1 [, bool &$success ]] ) Increments the value associated with the key by 1 or as specified by inc_by. Parameters: key The key that was used to store the variable in the cache. key is case sensitive. inc_by

wincache_ucache_info

(PECL wincache >= 1.1.0) Retrieves information about data stored in the user cache array wincache_ucache_info ([ bool $summaryonly = false [, string $key = NULL ]] ) Retrieves information about data stored in the user cache. Parameters: summaryonly Controls whether the returned array will contain information about individual cache entries along with the user cache

wincache_ucache_meminfo

(PECL wincache >= 1.1.0) Retrieves information about user cache memory usage array wincache_ucache_meminfo ( void ) Retrieves information about memory usage by user cache. Returns: 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

wincache_ucache_set

(PECL wincache >= 1.1.0) Adds a variable in user cache and overwrites a variable if it already exists in the cache bool wincache_ucache_set ( mixed $key, mixed $value [, int $ttl = 0 ] ) bool wincache_ucache_set ( array $values [, mixed $unused = NULL [, int $ttl = 0 ]] ) Adds a variable in user cache. Overwrites a variable if it already exists in the cache. The added or updated variable remains in the user cache unle