Symfony2 API
Interface

Symfony\Component\Validator\Mapping\Cache\CacheInterface

interface CacheInterface

Persists ClassMetadata instances in a cache.

Methods

has(string $class)

Returns whether metadata for the given class exists in the cache.

ClassMetadata|false read(string $class)

Returns the metadata for the given class from the cache.

write(ClassMetadata $metadata)

Stores a class metadata in the cache.

Details

at line 28
public has(string $class)

Returns whether metadata for the given class exists in the cache.

Parameters

string $class

at line 37
public ClassMetadata|false read(string $class)

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

at line 44
public write(ClassMetadata $metadata)

Stores a class metadata in the cache.

Parameters

ClassMetadata $metadata A Class Metadata