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', 2);
wincache_ucache_set('orange', 4);
wincache_ucache_set('blue', 8);
wincache_ucache_set('cyan', 16);
$array1 = array('green', 'red', 'orange', 'blue', 'cyan');
var_dump(wincache_ucache_get($array1));
var_dump(wincache_ucache_clear());
var_dump(wincache_ucache_get($array1));
?>

The above example will output:

array(5) { ["green"]=> int(1) 
           ["red"]=> int(2) 
           ["orange"]=> int(4) 
           ["blue"]=> int(8) 
           ["cyan"]=> int(16) } 
bool(true) 
bool(false) 
See also:

wincache_ucache_set() -

wincache_ucache_add() -

wincache_ucache_delete() -

wincache_ucache_get() -

wincache_ucache_exists() -

wincache_ucache_meminfo() -

wincache_ucache_info() -

doc_php
2016-02-24 15:54:15
Comments
Leave a Comment

Please login to continue.