class QueryCacheProfile (View source)

Query Cache Profile handles the data relevant for query caching.

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

Methods

__construct(int $lifetime = 0, string $cacheKey = null, Cache $resultCache = null)

No description

Cache
getResultCacheDriver()

No description

int
getLifetime()

No description

string
getCacheKey()

No description

array
generateCacheKeys(string $query, array $params, array $types)

Generate the real cache key from query, params and types.

setResultCacheDriver(Cache $cache)

No description

setCacheKey(string|null $cacheKey)

No description

setLifetime(int $lifetime)

No description

Details

__construct(int $lifetime = 0, string $cacheKey = null, Cache $resultCache = null)

Parameters

int $lifetime
string $cacheKey
Cache $resultCache

Cache getResultCacheDriver()

Return Value

Cache

int getLifetime()

Return Value

int

string getCacheKey()

Return Value

string

array generateCacheKeys(string $query, array $params, array $types)

Generate the real cache key from query, params and types.

Parameters

string $query
array $params
array $types

Return Value

array

QueryCacheProfile setResultCacheDriver(Cache $cache)

Parameters

Cache $cache

Return Value

QueryCacheProfile

QueryCacheProfile setCacheKey(string|null $cacheKey)

Parameters

string|null $cacheKey

Return Value

QueryCacheProfile

QueryCacheProfile setLifetime(int $lifetime)

Parameters

int $lifetime

Return Value

QueryCacheProfile