$message = 'Failed to save the new namespace'.
($e instanceof \Exception ? ': '.
$e->
getMessage() : '.'
);
CacheItem::
log($this->logger,
$message,
['exception' =>
$e instanceof \Exception ?
$e : null, 'cache-adapter' =>
get_debug_type($this)]);
} else { $this->namespaceVersion =
$namespaceVersion;
$this->ids =
[];
} } else { $namespaceToClear =
$this->namespace.
$prefix;
} try { return $this->
doClear($namespaceToClear) ||
$cleared;
} catch (\Exception
$e) { CacheItem::
log($this->logger, 'Failed to clear the cache: '.
$e->
getMessage(),
['exception' =>
$e, 'cache-adapter' =>
get_debug_type($this)]);
return false;
} } public function deleteItem(mixed
$key): bool
{ return $this->
deleteItems([$key]);
}