Doctrine\ORM\AbstractQuery::useResultCache
Set whether or not to cache the results of this query and if so, for how long and which ID to use for the cache entry.
Signature
public function useResultCache(boolean
$bool,
[integer
$lifetime = null,
[string
$resultCacheId = null]] )
Parameters
$bool
— boolean$lifetime
— integer$resultCacheId
— string
Returns
- AbstractQuery
- This query instance.