Поделиться через


RedisHashSetVectorStoreRecordCollection<TRecord>.UpsertAsync Method

Definition

Upserts a record into the vector store. Does not guarantee that the collection exists. If the record already exists, it is updated. If the record does not exist, it is created.

public virtual System.Threading.Tasks.Task<string> UpsertAsync(TRecord record, System.Threading.CancellationToken cancellationToken = default);
abstract member UpsertAsync : 'Record * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.UpsertAsync : 'Record * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function UpsertAsync (record As TRecord, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

record
TRecord
cancellationToken
CancellationToken

Returns

Implements

Applies to