class ResourcePool extends BaseResourcePool

ResourcePool class.

This class acts as a registry for current objects managed by the Client. It also abstracts access to objects stored in cache.

Methods

__construct(JsonDecoderClientInterface $client, CacheItemPoolInterface $cacheItemPool, bool $autoWarmup = \false, bool $cacheContent = \false)

No description

has(string $type, string $id, array $options = [])

{@inheritdoc}

save(ResourceInterface $resource)

{@inheritdoc}

get(string $type, string $id, array $options = [])

{@inheritdoc}

generateKey(string $type, string $id, array $options = [])

{@inheritdoc}

Details

at line 83
__construct(JsonDecoderClientInterface $client, CacheItemPoolInterface $cacheItemPool, bool $autoWarmup = \false, bool $cacheContent = \false)

Parameters

JsonDecoderClientInterface $client
CacheItemPoolInterface $cacheItemPool
bool $autoWarmup
bool $cacheContent

at line 130
has(string $type, string $id, array $options = [])

{@inheritdoc}

Parameters

string $type
string $id
array $options

at line 141
save(ResourceInterface $resource)

{@inheritdoc}

Parameters

ResourceInterface $resource

at line 171
get(string $type, string $id, array $options = [])

{@inheritdoc}

Parameters

string $type
string $id
array $options

at line 192
generateKey(string $type, string $id, array $options = [])

{@inheritdoc}

Parameters

string $type
string $id
array $options