Documentation

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

Properties

$cacheKey  : string|null
$lifetime  : int
$resultCache  : CacheItemPoolInterface|null

Methods

__construct()  : mixed
generateCacheKeys()  : array{: string, : 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, array<int, 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}
Parameters
$sql : string
$params : array<int, mixed>|array<string, mixed>
$types : array<int, Type|int|string|null>|array<string, Type|int|string|null>
$connectionParams : array<string, mixed> = []
Return values
array{: string, : string}

getResultCacheDriver()

public getResultCacheDriver() : Cache|null
Tags
deprecated

Use getResultCache() instead.

Return values
Cache|null

        
On this page

Search results