You are here

public function ApcCache::read in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Mapping/Cache/ApcCache.php \Symfony\Component\Validator\Mapping\Cache\ApcCache::read()

Returns the metadata for the given class from the cache.

Parameters

string $class Class Name:

Return value

ClassMetadata|false A ClassMetadata instance or false on miss

Overrides CacheInterface::read

File

vendor/symfony/validator/Mapping/Cache/ApcCache.php, line 48

Class

ApcCache

Namespace

Symfony\Component\Validator\Mapping\Cache

Code

public function read($class) {
  return apc_fetch($this->prefix . $class);
}