class Standard implements QueryPoolInterface

Methods

__construct(JsonDecoderClientInterface $client, CacheItemPoolInterface $cacheItemPool, int $lifetime)

No description

bool
save(BaseQuery $query, ResourceArray $entries)

Saves the given query into the pool.

get(BaseQuery $query)

No description

has(BaseQuery $query)

No description

generateKey(BaseQuery $query)

No description

warmUp(string $key)

No description

Details

at line 45
__construct(JsonDecoderClientInterface $client, CacheItemPoolInterface $cacheItemPool, int $lifetime)

Parameters

JsonDecoderClientInterface $client
CacheItemPoolInterface $cacheItemPool
int $lifetime

at line 58
bool save(BaseQuery $query, ResourceArray $entries)

Saves the given query into the pool.

Parameters

BaseQuery $query
ResourceArray $entries

Return Value

bool True is the query was successfully added, false if it was already present

Exceptions

RuntimeException If the saving process fails

at line 82
get(BaseQuery $query)

Parameters

BaseQuery $query

at line 94
has(BaseQuery $query)

Parameters

BaseQuery $query

at line 102
generateKey(BaseQuery $query)

Parameters

BaseQuery $query

at line 107
protected warmUp(string $key)

Parameters

string $key