ResourcePool deprecated
class ResourcePool extends Extended
deprecated
ResourcePool class.
This class acts as a registry for current objects managed by the Client. It also abstracts access to objects stored in cache.
Properties
| protected string | $api | from Standard | |
| protected string | $spaceId | from Standard | |
| protected string | $environmentId | from Standard | |
| protected JsonDecoderClientInterface | $client | from Extended | |
| protected CacheItemPoolInterface | $cacheItemPool | from Extended | |
| protected string[] | $warmupTypes | from Extended | |
| protected bool[] | $warmupStack | When retrieving from cache, there's the risk of an endless loop, so we keep track of the resources we're currently warming up, and skip the process if we track that we're already in the process of doing so. | from Extended |
| protected bool | $autoWarmup | from Extended |
Methods
__construct(JsonDecoderClientInterface $client, CacheItemPoolInterface $cacheItemPool, bool $autoWarmup = \false, bool $cacheContent = \false)
No description
from Extended
bool
savesResource(string $type)
Determines whether the given resource type must be actually stored.
from Extended
Details
in Extended at line 66
__construct(JsonDecoderClientInterface $client, CacheItemPoolInterface $cacheItemPool, bool $autoWarmup = \false, bool $cacheContent = \false)
in Extended at line 90
protected bool
savesResource(string $type)
Determines whether the given resource type must be actually stored.
in Standard at line 73
protected string|null
getResourceLocale(ResourceInterface $resource)
in Extended at line 98
protected
warmUp(string $key, string $type)
Skeleton method which a can be overridden.
in Standard at line 95
has(string $type, string $id, array $options = [])
{@inheritdoc}
in Extended at line 120
save(ResourceInterface $resource)
{@inheritdoc}
in Standard at line 131
get(string $type, string $id, array $options = [])
{@inheritdoc}
in Standard at line 152
generateKey(string $type, string $id, array $options = [])
{@inheritdoc}