public function getCached($columns = array('*'))
    {
        if (is_null($this->columns)) $this->columns = $columns;

        //
        list($key, $minutes) = $this->getCacheInfo();

        $cache = $this->getCache();

        $callback = $this->getCacheCallback($columns);

        if ($minutes < 0) {
            return $cache->rememberForever($key, $callback);
        }

        return $cache->remember($key, $minutes, $callback);
    }
public function getCached($columns = array('*'))
    {
        if (is_null($this->columns)) $this->columns = $columns;

        //
        list($key, $minutes) = $this->getCacheInfo();

        $cache = $this->getCache();

        $callback = $this->getCacheCallback($columns);

        if ($minutes < 0) {
            return $cache->rememberForever($key, $callback);
        }

        return $cache->remember($key, $minutes, $callback);
    }
public function getCached ( $ columns = array ( '*' ) ) { if ( is_null ( $ this -> columns ) ) $ this -> columns = $ columns ; // list ( $ key , $ minutes ) = $ this -> getCacheInfo ( ) ; $ cache = $ this -> getCache ( ) ; $ callback = $ this -> getCacheCallback ( $ columns ) ; if ( $ minutes < 0 ) { return $ cache -> rememberForever ( $ key , $ callback ) ; } return $ cache -> remember ( $ key , $ minutes , $ callback ) ; }
Execute the query as a cached "select" statement.

@param  array  $columns
@return array
Execute the query as a cached select statement .