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.

ResourceInterface[]
fetchResources(bool $cacheContent = \false)

No description

bool
warmUp(bool $cacheContent = \false)

No description

Details

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

CacheWarmer constructor.

Parameters

ClientInterface $client
ResourcePoolInterface $resourcePool
CacheItemPoolInterface $cacheItemPool

in BaseCacheHandler at line 60
protected ResourceInterface[] fetchResources(bool $cacheContent = \false)

Parameters

bool $cacheContent

Return Value

ResourceInterface[]

at line 31
bool warmUp(bool $cacheContent = \false)

Parameters

bool $cacheContent

Return Value

bool