protected function callWithFallback($property, $path, $method)
    {
        $result = $this->cache->{$method}($path);

        if ($result !== false && ($property === null || array_key_exists($property, $result))) {
            return $result;
        }

        $result = $this->adapter->{$method}($path);

        if ($result) {
            $object = $result + compact('path');
            $this->cache->updateObject($path, $object, true);
        }

        return $result;
    }
protected function callWithFallback($property, $path, $method)
    {
        $result = $this->cache->{$method}($path);

        if ($result !== false && ($property === null || array_key_exists($property, $result))) {
            return $result;
        }

        $result = $this->adapter->{$method}($path);

        if ($result) {
            $object = $result + compact('path');
            $this->cache->updateObject($path, $object, true);
        }

        return $result;
    }
protected function callWithFallback ( $ property , $ path , $ method ) { $ result = $ this -> cache -> { $ method } ( $ path ) ; if ( $ result !== false && ( $ property === null || array_key_exists ( $ property , $ result ) ) ) { return $ result ; } $ result = $ this -> adapter -> { $ method } ( $ path ) ; if ( $ result ) { $ object = $ result + compact ( 'path' ) ; $ this -> cache -> updateObject ( $ path , $ object , true ) ; } return $ result ; }
Call a method and cache the response.

@param string $property
@param string $path
@param string $method

@return mixed
Call a method and cache the response .