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

@param boolean $useCache
@param integer $cacheLifetime
If hydrating with Doctrine then you can use the result cache on the default or provided query