class CacheWarmer extends BaseCacheHandler

CacheWarmer class.

Use this class to save the needed cache information in 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

warmUp(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 30
warmUp(bool $cacheContent = false)

Parameters

bool $cacheContent