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


RedisHashSetVectorStoreRecordCollection<TRecord>.GetAsync Method

Definition

Gets a record from the vector store. Does not guarantee that the collection exists. Returns null if the record is not found.

public virtual System.Threading.Tasks.Task<TRecord?> GetAsync(string key, Microsoft.Extensions.VectorData.GetRecordOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * Microsoft.Extensions.VectorData.GetRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Record>
override this.GetAsync : string * Microsoft.Extensions.VectorData.GetRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Record>
Public Overridable Function GetAsync (key As String, Optional options As GetRecordOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TRecord)

Parameters

key
String
cancellationToken
CancellationToken

Returns

Task<TRecord>

Implements

Applies to