src/acdhOeaw/fedora/FedoraCache.php
public function deleteByUri(string $uri) {
        if (!isset($this->cache[$uri])) {
            throw new NotInCache();
        }
        foreach ($this->uri2id[$uri] as $id) {
            unset($this->id2uri[$id]);
        }
        unset($this->uri2id[$uri]);
        unset($this->cache[$uri]);
    }
public function deleteByUri(string $uri) {
        if (!isset($this->cache[$uri])) {
            throw new NotInCache();
        }
        foreach ($this->uri2id[$uri] as $id) {
            unset($this->id2uri[$id]);
        }
        unset($this->uri2id[$uri]);
        unset($this->cache[$uri]);
    }
public function deleteByUri ( string $ uri ) { if ( ! isset ( $ this -> cache [ $ uri ] ) ) { throw new NotInCache ( ) ; } foreach ( $ this -> uri2id [ $ uri ] as $ id ) { unset ( $ this -> id2uri [ $ id ] ) ; } unset ( $ this -> uri2id [ $ uri ] ) ; unset ( $ this -> cache [ $ uri ] ) ; }
Removes given resource from cache.
@param string $uri resource URI
Removes given resource from cache .