Psr6CacheClearer
in package
implements
CacheClearerInterface
Tags
Table of Contents
Interfaces
- CacheClearerInterface
- CacheClearerInterface.
Properties
- $pools : array<string|int, mixed>
Methods
- __construct() : mixed
- clear() : mixed
- Clears any caches necessary.
- clearPool() : bool
- getPool() : CacheItemPoolInterface
- hasPool() : bool
Properties
$pools
private
array<string|int, mixed>
$pools
= []
Methods
__construct()
public
__construct([array<string, CacheItemPoolInterface> $pools = [] ]) : mixed
Parameters
- $pools : array<string, CacheItemPoolInterface> = []
clear()
Clears any caches necessary.
public
clear(string $cacheDir) : mixed
Parameters
- $cacheDir : string
clearPool()
public
clearPool(string $name) : bool
Parameters
- $name : string
Tags
Return values
boolgetPool()
public
getPool(string $name) : CacheItemPoolInterface
Parameters
- $name : string
Tags
Return values
CacheItemPoolInterfacehasPool()
public
hasPool(string $name) : bool
Parameters
- $name : string