src/acdhOeaw/fedora/FedoraCache.php
public function getByUri(string $uri): FedoraResource {
        if (!isset($this->cache[$uri])) {
            throw new NotInCache();
        }
        return $this->cache[$uri];
    }
public function getByUri(string $uri): FedoraResource {
        if (!isset($this->cache[$uri])) {
            throw new NotInCache();
        }
        return $this->cache[$uri];
    }
public function getByUri ( string $ uri ) : FedoraResource { if ( ! isset ( $ this -> cache [ $ uri ] ) ) { throw new NotInCache ( ) ; } return $ this -> cache [ $ uri ] ; }
Gets a resource from cache by its URI.
@param string $uri resource URI
@return FedoraResource
@throws NotInCache
Gets a resource from cache by its URI .