src/Micrometa/Infrastructure/Parser/JsonLD/VocabularyCache.php
public function getDocument($url)
    {
        $urlHash = $this->getCacheHash($url, self::SLOT_DOC);

        // Try to retrieve the document from the cache
        if (Cache::getAdapter()->hasItem($urlHash)) {
            return Cache::getAdapter()->getItem($urlHash)->get();
        }

        return null;
    }
public function getDocument($url)
    {
        $urlHash = $this->getCacheHash($url, self::SLOT_DOC);

        // Try to retrieve the document from the cache
        if (Cache::getAdapter()->hasItem($urlHash)) {
            return Cache::getAdapter()->getItem($urlHash)->get();
        }

        return null;
    }
public function getDocument ( $ url ) { $ urlHash = $ this -> getCacheHash ( $ url , self :: SLOT_DOC ) ; // Try to retrieve the document from the cache if ( Cache :: getAdapter ( ) -> hasItem ( $ urlHash ) ) { return Cache :: getAdapter ( ) -> getItem ( $ urlHash ) -> get ( ) ; } return null ; }
Return a cached document

@param string $url URL

@return RemoteDocument|null Cached document
Return a cached document