interface CacheItemPoolFactoryInterface

CacheItemPoolFactoryInterface.

This interface must be implemented by a factory in order to be compatible with CLI commands for warming up and clearing the cache.

Methods

getCacheItemPool(string $api, string $spaceId, string $environmentId)

Returns a PSR-6 CacheItemPoolInterface object.

Details

at line 36
getCacheItemPool(string $api, string $spaceId, string $environmentId)

Returns a PSR-6 CacheItemPoolInterface object.

The method receives two parameters, which can be used for things like using a different directory in the filesystem, but the implementation can simply not use them if they're not necessary.

Parameters

string $api A string representation of the API in use, it's the result of calling $client->getApi()
string $spaceId The ID of the space
string $environmentId The ID of the environment