abstract protected function doSave(array
$values, int
$lifetime): array|bool;
public function hasItem(mixed
$key): bool
{ $id =
$this->
getId($key);
if (isset($this->deferred
[$key])) { $this->
commit();
} try { return $this->
doHave($id);
} catch (\Exception
$e) { CacheItem::
log($this->logger, 'Failed to check if key "{key}" is cached: '.
$e->
getMessage(),
['key' =>
$key, 'exception' =>
$e, 'cache-adapter' =>
get_debug_type($this)]);
return false;
} } public function clear(string
$prefix = ''
): bool
{ $this->deferred =
[];
if ($cleared =
$this->versioningIsEnabled
) {