CodeExplorer normalizeExpiry example
return 0 === \
count($results);
} protected function doSave(array
$values, int
$lifetime): array|bool
{ if (!
$values =
$this->marshaller->
marshall($values,
$failed)) { return $failed;
} $lifetime =
$this->
normalizeExpiry($lifetime);
$ko =
[];
foreach ($values as $key =>
$value) { $result =
$this->bucket->
upsert($key,
$value,
['expiry' =>
$lifetime]);
if (null !==
$result->error
) { $ko[$key] =
$result;
} } return [] ===
$ko ? true :
$ko;
}