You are here

public function CacheInterface::read in Plug 7

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

2 methods override CacheInterface::read()
ApcCache::read in lib/Symfony/validator/Symfony/Component/Validator/Mapping/Cache/ApcCache.php
Returns the metadata for the given class from the cache.
DoctrineCache::read in lib/Symfony/validator/Symfony/Component/Validator/Mapping/Cache/DoctrineCache.php
Returns the metadata for the given class from the cache.

File

lib/Symfony/validator/Symfony/Component/Validator/Mapping/Cache/CacheInterface.php, line 37

Class

CacheInterface
Persists ClassMetadata instances in a cache.

Namespace

Symfony\Component\Validator\Mapping\Cache

Code

public function read($class);