Method Add(string, CancellationToken)

Assembly: redb.Route.Sql.dll

Attempts to add the key. Returns true if the key was new (not a duplicate).
Returns false if the key already exists (duplicate).

public Task<bool> Add(string key, CancellationToken ct = default)

Remarks

An insert that loses the key to another one at the same moment (an error on PostgreSQL, and on SQL Server when both
pass the existence check) answers false: the key is held, the message is a duplicate.