public function get(string $entryIdentifier)
    {
        if ($entryIdentifier !== basename($entryIdentifier)) {
            throw new \InvalidArgumentException('The specified entry identifier must not contain a path segment.', 1334756877);
        }

        $pathAndFilename = $this->cacheDirectory . $entryIdentifier . $this->cacheEntryFileExtension;

        if (!file_exists($pathAndFilename)) {
            return false;
        }

        return $this->readCacheFile($pathAndFilename);
    }
public function get(string $entryIdentifier)
    {
        if ($entryIdentifier !== basename($entryIdentifier)) {
            throw new \InvalidArgumentException('The specified entry identifier must not contain a path segment.', 1334756877);
        }

        $pathAndFilename = $this->cacheDirectory . $entryIdentifier . $this->cacheEntryFileExtension;

        if (!file_exists($pathAndFilename)) {
            return false;
        }

        return $this->readCacheFile($pathAndFilename);
    }
public function get ( string $ entryIdentifier ) { if ( $ entryIdentifier !== basename ( $ entryIdentifier ) ) { throw new \ InvalidArgumentException ( 'The specified entry identifier must not contain a path segment.' , 1334756877 ) ; } $ pathAndFilename = $ this -> cacheDirectory . $ entryIdentifier . $ this -> cacheEntryFileExtension ; if ( ! file_exists ( $ pathAndFilename ) ) { return false ; } return $ this -> readCacheFile ( $ pathAndFilename ) ; }
Loads data from a cache file.

@param string $entryIdentifier An identifier which describes the cache entry to load
@return mixed The cache entry's content as a string or false if the cache entry could not be loaded
@throws \InvalidArgumentException
@api
Loads data from a cache file .