Doctrine\Search\Query::useResultCache PHP Метод

useResultCache() публичный Метод

If hydrating with Doctrine then you can use the result cache on the default or provided query
public useResultCache ( boolean $useCache, integer $cacheLifetime = null )
$useCache boolean
$cacheLifetime integer
    public function useResultCache($useCache, $cacheLifetime = null)
    {
        $this->useResultCache = $useCache;
        $this->cacheLifetime = $cacheLifetime;
        return $this;
    }