public function ApcCache::has in Plug 7
Returns whether metadata for the given class exists in the cache.
Parameters
string $class:
Overrides CacheInterface::has
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Mapping/ Cache/ ApcCache.php, line 33
Class
Namespace
Symfony\Component\Validator\Mapping\CacheCode
public function has($class) {
if (!function_exists('apc_exists')) {
$exists = false;
apc_fetch($this->prefix . $class, $exists);
return $exists;
}
return apc_exists($this->prefix . $class);
}