mediatekformation

QueryCacheProfile
in package

Query Cache Profile handles the data relevant for query caching.

It is a value object, setter methods return NEW instances.

Table of Contents

$cacheKey  : string|null
$lifetime  : int
$resultCache  : CacheItemPoolInterface|null
__construct()  : mixed
generateCacheKeys()  : array<string|int, string>
Generates the real cache key from query, params, types and connection parameters.
getCacheKey()  : string
getLifetime()  : int
getResultCache()  : CacheItemPoolInterface|null
getResultCacheDriver()  : Cache|null
setCacheKey()  : QueryCacheProfile
setLifetime()  : QueryCacheProfile
setResultCache()  : QueryCacheProfile
setResultCacheDriver()  : QueryCacheProfile

Properties

Methods

generateCacheKeys()

Generates the real cache key from query, params, types and connection parameters.

public generateCacheKeys(string $sql, list<string|int, mixed>|array<string, mixed> $params, array<int, \Doctrine\DBAL\Types\Type|int|string|null>|array<string, \Doctrine\DBAL\Types\Type|int|string|null> $types[, array<string, mixed> $connectionParams = [] ]) : array<string|int, string>
Parameters
$sql : string
$params : list<string|int, mixed>|array<string, mixed>
$types : array<int, \Doctrine\DBAL\Types\Type|int|string|null>|array<string, \Doctrine\DBAL\Types\Type|int|string|null>
$connectionParams : array<string, mixed> = []
Return values
array<string|int, string>

getResultCacheDriver()

public getResultCacheDriver() : Cache|null
Tags
deprecated

Use getResultCache() instead.

Return values
Cache|null

Search results