class CacheClearer extends BaseCacheHandler

CacheClearer class.

Use this class to clear the needed cache information from a PSR-6 compatible pool.

Properties

protected ClientInterface $client from BaseCacheHandler
protected ResourcePoolInterface $resourcePool from BaseCacheHandler
protected CacheItemPoolInterface $cacheItemPool from BaseCacheHandler

Methods

__construct(ClientInterface $client, ResourcePoolInterface $resourcePool, CacheItemPoolInterface $cacheItemPool)

CacheWarmer constructor.

Generator|ResourceInterface[]
fetchResources(bool $cacheContent = false)

No description

clear(bool $cacheContent = false)

No description

Details

in BaseCacheHandler at line 41
__construct(ClientInterface $client, ResourcePoolInterface $resourcePool, CacheItemPoolInterface $cacheItemPool)

CacheWarmer constructor.

Parameters

ClientInterface $client
ResourcePoolInterface $resourcePool
CacheItemPoolInterface $cacheItemPool

in BaseCacheHandler at line 54
protected Generator|ResourceInterface[] fetchResources(bool $cacheContent = false)

Parameters

bool $cacheContent

Return Value

Generator|ResourceInterface[]

at line 28
clear(bool $cacheContent = false)

Parameters

bool $cacheContent