public getWrapped ( string $entryIdentifier ) : string | ||
$entryIdentifier | string | |
return | string |
public function getWrapped($entryIdentifier)
{
if (!$this->isValidEntryIdentifier($entryIdentifier)) {
throw new \InvalidArgumentException('"' . $entryIdentifier . '" is not a valid cache entry identifier.', 1233057752);
}
return $this->backend->get($entryIdentifier);
}
/** * Gets an entry from the cache or NULL if the * entry does not exist. * * @param string $name * @return string */ public function get($name) { if ($this->flowCache->has($name)) { $this->flowCache->requireOnce($name); } return $this->flowCache->getWrapped($name); }