src/storage/BaseFileSystemStorage.php
private function getQueryCacheHelper(\yii\db\Query $query, $key)
    {
        $data = $this->getHasCache($key);

        if ($data === false) {
            $data = $query->all();
            $this->setHasCache($key, $data);
        }

        return $data;
    }
private function getQueryCacheHelper(\yii\db\Query $query, $key)
    {
        $data = $this->getHasCache($key);

        if ($data === false) {
            $data = $query->all();
            $this->setHasCache($key, $data);
        }

        return $data;
    }
private function getQueryCacheHelper ( \ yii \ db \ Query $ query , $ key ) { $ data = $ this -> getHasCache ( $ key ) ; if ( $ data === false ) { $ data = $ query -> all ( ) ; $ this -> setHasCache ( $ key , $ data ) ; } return $ data ; }
Caching helper method.

@param \yii\db\Query $query
@param string|array $key
@return mixed|boolean
Caching helper method .