RedisHashSetVectorStoreRecordCollection<TRecord>.GetAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- options
- GetRecordOptions
- cancellationToken
- CancellationToken
Returns
Task<TRecord>