CacheInterface
in
Persists ClassMetadata instances in a cache.
Tags
Table of Contents
- has() : mixed
- Returns whether metadata for the given class exists in the cache.
- read() : ClassMetadata|false
- Returns the metadata for the given class from the cache.
- write() : mixed
- Stores a class metadata in the cache.
Methods
has()
Returns whether metadata for the given class exists in the cache.
public
has(string $class) : mixed
Parameters
- $class : string
Return values
mixed —read()
Returns the metadata for the given class from the cache.
public
read(string $class) : ClassMetadata|false
Parameters
- $class : string
-
Class Name
Return values
ClassMetadata|false —A ClassMetadata instance or false on miss
write()
Stores a class metadata in the cache.
public
write(ClassMetadata $metadata) : mixed
Parameters
- $metadata : ClassMetadata