AbstractPhpFileCacheWarmer
in package
implements
CacheWarmerInterface
Interfaces, Classes, Traits and Enums
- CacheWarmerInterface
- Interface for classes able to warm up the cache.
Table of Contents
- $phpArrayFile : mixed
- __construct() : mixed
- isOptional() : bool
- Checks whether this warmer is optional or not.
- warmUp() : mixed
- {@inheritdoc}
- doWarmUp() : bool
- warmUpPhpArrayAdapter() : mixed
Properties
$phpArrayFile
private
mixed
$phpArrayFile
Methods
__construct()
public
__construct(string $phpArrayFile) : mixed
Parameters
- $phpArrayFile : string
-
The PHP file where metadata are cached
Return values
mixed —isOptional()
Checks whether this warmer is optional or not.
public
isOptional() : bool
Return values
bool —true if the warmer is optional, false otherwise
warmUp()
{@inheritdoc}
public
warmUp(mixed $cacheDir) : mixed
Parameters
- $cacheDir : mixed
Return values
mixed —doWarmUp()
protected
abstract doWarmUp(string $cacheDir, ArrayAdapter $arrayAdapter) : bool
Parameters
- $cacheDir : string
- $arrayAdapter : ArrayAdapter
Return values
bool —false if there is nothing to warm-up
warmUpPhpArrayAdapter()
protected
warmUpPhpArrayAdapter(PhpArrayAdapter $phpArrayAdapter, array<string|int, mixed> $values) : mixed
Parameters
- $phpArrayAdapter : PhpArrayAdapter
- $values : array<string|int, mixed>