Query Cache Profile handles the data relevant for query caching.
It is a value object, setter methods return NEW instances.
| Methods | ||
|---|---|---|
public
|
__construct(int $lifetime = 0, string|null $cacheKey = null, CacheItemPoolInterface|Cache|null $resultCache = null)
|
# |
public
|
getResultCache(): ?CacheItemPoolInterface
|
# |
public
|
getResultCacheDriver(): Cache|null
|
# |
public
|
getLifetime(): int
|
# |
public
|
getCacheKey(): string
|
# |
public
|
generateCacheKeys(
string $sql,
list<mixed>|array<string, mixed> $params,
array<int, Type|int|string|null>|array<string, Type|int|string|null> $types,
array<string, mixed> $connectionParams = [],
): array{string, string}
|
# |
public
|
setResultCache(CacheItemPoolInterface $cache): QueryCacheProfile
|
# |
public
|
setResultCacheDriver(Cache $cache): QueryCacheProfile
|
# |
public
|
setCacheKey(string|null $cacheKey): QueryCacheProfile
|
# |
public
|
setLifetime(int $lifetime): QueryCacheProfile
|
# |
| Properties | |||
|---|---|---|---|
private
|
?CacheItemPoolInterface
|
$resultCache = null
|
# |
private
|
int
|
$lifetime
|
# |
private
|
string|null
|
$cacheKey
|
# |