class ApcCache implements CacheInterface

deprecated since version 2.5, to be removed in 3.0. Use DoctrineCache with \Doctrine\Common\Cache\ApcCache instead.

Methods

__construct($prefix)

No description

has(string $class)

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

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 line 26
__construct($prefix)

Parameters

$prefix

at line line 35
has(string $class)

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

Parameters

string $class

at line line 48
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 line 53
write(ClassMetadata $metadata)

Stores a class metadata in the cache.

Parameters

ClassMetadata $metadata A Class Metadata