DoctrineCache
class DoctrineCache implements CacheInterface
Adapts a Doctrine cache to a CacheInterface.
Methods
__construct(Cache $cache)
Creates a new Doctrine cache.
setCache(Cache $cache)
Sets the cache to adapt.
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
Details
at line line 31
__construct(Cache $cache)
Creates a new Doctrine cache.
at line line 41
setCache(Cache $cache)
Sets the cache to adapt.
at line line 49
has(string $class)
Returns whether metadata for the given class exists in the cache
at line line 57
ClassMetadata|false
read(string $class)
Returns the metadata for the given class from the cache
at line line 65
write(ClassMetadata $metadata)
Stores a class metadata in the cache