WINCACHE_UCACHE_EXISTS(3) 1 WINCACHE_UCACHE_EXISTS(3)
wincache_ucache_exists - Checks if a variable exists in the user cache
SYNOPSIS
bool wincache_ucache_exists (string $key)
DESCRIPTION
Checks if a variable with the $key exists in the user cache or not.
PARAMETERS
o $key
- The $key that was used to store the variable in the cache. $key is case sensitive.
RETURN VALUES
Returns TRUE if variable with the $key exitsts, otherwise returns FALSE.
EXAMPLES
Example #1
Using wincache_ucache_exists(3)
<?php
if (!wincache_ucache_exists('green'))
wincache_ucache_set('green', 1);
var_dump(wincache_ucache_exists('green'));
?>
The above example will output:
bool(true)
SEE ALSO
wincache_ucache_set(3), wincache_ucache_add(3), wincache_ucache_get(3), wincache_ucache_clear(3), wincache_ucache_delete(3), win-
cache_ucache_meminfo(3), wincache_ucache_info(3).
PHP Documentation Group WINCACHE_UCACHE_EXISTS(3)