public function get($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;
}
$lock = new Lock($pathAndFilename, false);
$result = file_get_contents($pathAndFilename);
$lock->release();
return $result;
}