DoctrineCache
in package
implements
CacheInterface
Adapts a Doctrine cache to a CacheInterface.
Tags
Interfaces, Classes, Traits and Enums
- CacheInterface
- Persists ClassMetadata instances in a cache.
Table of Contents
- $cache : mixed
- __construct() : mixed
- has() : bool
- Returns whether metadata for the given class exists in the cache.
- read() : ClassMetadata|false
- Returns the metadata for the given class from the cache.
- setCache() : mixed
- write() : mixed
- Stores a class metadata in the cache.
Properties
$cache
private
mixed
$cache
Methods
__construct()
public
__construct(Cache $cache) : mixed
Parameters
- $cache : Cache
Return values
mixed —has()
Returns whether metadata for the given class exists in the cache.
public
has(mixed $class) : bool
Parameters
- $class : mixed
Return values
bool —read()
Returns the metadata for the given class from the cache.
public
read(mixed $class) : ClassMetadata|false
Parameters
- $class : mixed
-
Class Name
Return values
ClassMetadata|false —A ClassMetadata instance or false on miss
setCache()
public
setCache(Cache $cache) : mixed
Parameters
- $cache : Cache
Return values
mixed —write()
Stores a class metadata in the cache.
public
write(ClassMetadata $metadata) : mixed
Parameters
- $metadata : ClassMetadata