public function remove($entryIdentifier)
{
if ($entryIdentifier !== basename($entryIdentifier)) {
throw new \InvalidArgumentException('The specified entry identifier must not contain a path segment.', 1334756960);
}
if ($entryIdentifier === '') {
throw new \InvalidArgumentException('The specified entry identifier must not be empty.', 1334756961);
}
$pathAndFilename = $this->cacheDirectory . $entryIdentifier . $this->cacheEntryFileExtension;
try {
$lock = new Lock($pathAndFilename);
unlink($pathAndFilename);
$lock->release();
} catch (\Exception $exception) {
return false;
}
return true;
}