class DoctrineCache implements CacheInterface

Adapts a Doctrine cache to a CacheInterface.

Methods

__construct(Cache $cache)

No description

setCache(Cache $cache)

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 26
__construct(Cache $cache)

Parameters

Cache $cache

at line 31
setCache(Cache $cache)

Parameters

Cache $cache

at line 39
has(string $class)

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

Parameters

string $class

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

Stores a class metadata in the cache.

Parameters

ClassMetadata $metadata