Method SaveByUniqueAsync<TProps>(RedbObject<TProps>, CancellationToken)
Upsert by the object key (P1): resolves the _objects row by (scheme, ValueUnique) and
saves onto it - the values ride the ordinary pipeline in the same save. A lost creation
race retries onto the winner's row, so a concurrent accept of one key is idempotent:
exactly one object per key, last writer's content. Returns the object id.
Throws RedbUniqueKeyDefinitionException when ValueUnique is empty.
public Task<long> SaveByUniqueAsync<TProps>(RedbObject<TProps> obj, CancellationToken cancellationToken = default) where TProps : class, new()