UpsertOptions example



        return 0 === \count($idsErrors);
    }

    protected function doSave(array $values$lifetime): array|bool
    {
        if (!$values = $this->marshaller->marshall($values$failed)) {
            return $failed;
        }

        $upsertOptions = new UpsertOptions();
        $upsertOptions->expiry($lifetime);

        $ko = [];
        foreach ($values as $key => $value) {
            try {
                $this->connection->upsert($key$value$upsertOptions);
            } catch (\Exception) {
                $ko[$key] = '';
            }
        }

        
Home | Imprint | This part of the site doesn't use cookies.