Doctrine\DBAL\Cache\QueryCacheProfile
Query Cache Profile handles the data relevant for query caching.
It is a value object, setter methods return NEW instances.
- Author: Benjamin Eberlei <kontakt@beberlei.de>
Synopsis
class QueryCacheProfile
{
- // members
- private Cache $resultCacheDriver;
- private integer $lifetime;
- private string $cacheKey;
- // methods
- public void __construct()
- public Cache getResultCacheDriver()
- public int getLifetime()
- public string getCacheKey()
- public array generateCacheKeys()
- public QueryCacheProfile setResultCacheDriver()
- public QueryCacheProfile setCacheKey()
- public QueryCacheProfile setLifetime()
Members
private
- $cacheKey — string
- $lifetime — int
- $resultCacheDriver — Doctrine\Common\Cache\Cache
Methods
public
- __construct()
- generateCacheKeys() — Generate the real cache key from query, params and types.
- getCacheKey()
- getLifetime()
- getResultCacheDriver()
- setCacheKey()
- setLifetime()
- setResultCacheDriver()