public function fetch($query)
    {
        $key = $this->_resolveKey($query);
        $storage = $this->_resolveCacher();
        $result = $storage->read($key);
        if (empty($result)) {
            return null;
        }

        return $result;
    }
public function fetch($query)
    {
        $key = $this->_resolveKey($query);
        $storage = $this->_resolveCacher();
        $result = $storage->read($key);
        if (empty($result)) {
            return null;
        }

        return $result;
    }
public function fetch ( $ query ) { $ key = $ this -> _resolveKey ( $ query ) ; $ storage = $ this -> _resolveCacher ( ) ; $ result = $ storage -> read ( $ key ) ; if ( empty ( $ result ) ) { return null ; } return $ result ; }
Load the cached results from the cache or run the query.

@param object $query The query the cache read is for.
@return \Cake\Datasource\ResultSetInterface|null Either the cached results or null.
Load the cached results from the cache or run the query .