public function ApcCache::has

Same name in this branch

Returns whether metadata for the given class exists in the cache

Parameters

string $class:

Overrides CacheInterface::has

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Mapping/Cache/ApcCache.php, line 29

Class

ApcCache

Namespace

Symfony\Component\Validator\Mapping\Cache

Code

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);
}