Psr6Cache
in package
implements
CacheInterface
PSR-6 adapter.
Tags
Interfaces, Classes, Traits and Enums
- CacheInterface
- Persists ClassMetadata instances in a cache.
Table of Contents
- $cacheItemPool : mixed
- __construct() : mixed
- 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.
- escapeClassName() : string
- Replaces backslashes by dots in a class name.
Properties
$cacheItemPool
private
mixed
$cacheItemPool
Methods
__construct()
public
__construct(CacheItemPoolInterface $cacheItemPool) : mixed
Parameters
- $cacheItemPool : CacheItemPoolInterface
Return values
mixed —has()
Returns whether metadata for the given class exists in the cache.
public
has(mixed $class) : mixed
Parameters
- $class : mixed
Return values
mixed —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
write()
Stores a class metadata in the cache.
public
write(ClassMetadata $metadata) : mixed
Parameters
- $metadata : ClassMetadata
Return values
mixed —escapeClassName()
Replaces backslashes by dots in a class name.
private
escapeClassName(string $class) : string
Parameters
- $class : string