public function get(QueryCacheBuilder $builder, $columns = ['*'])
    {
        if (!$this->enabled()) {
            return $this->performQuery($builder, $columns);
        }

        $key = $this->generateKey($builder, $columns);

        $cache = $this->getCache($builder);

        return $cache->remember($key, $this->length, function () use ($builder, $columns) {
            return $this->performQuery($builder, $columns);
        });
    }
public function get(QueryCacheBuilder $builder, $columns = ['*'])
    {
        if (!$this->enabled()) {
            return $this->performQuery($builder, $columns);
        }

        $key = $this->generateKey($builder, $columns);

        $cache = $this->getCache($builder);

        return $cache->remember($key, $this->length, function () use ($builder, $columns) {
            return $this->performQuery($builder, $columns);
        });
    }
public function get ( QueryCacheBuilder $ builder , $ columns = [ '*' ] ) { if ( ! $ this -> enabled ( ) ) { return $ this -> performQuery ( $ builder , $ columns ) ; } $ key = $ this -> generateKey ( $ builder , $ columns ) ; $ cache = $ this -> getCache ( $ builder ) ; return $ cache -> remember ( $ key , $ this -> length , function ( ) use ( $ builder , $ columns ) { return $ this -> performQuery ( $ builder , $ columns ) ; } ) ; }
Gets the model results.

@param QueryCacheBuilder $builder
@param array             $columns

@return Collection
Gets the model results .