CachingEmbeddingGenerator<TInput,TEmbedding>.WriteCacheAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Stocke un TEmbedding dans le cache sous-jacent.
protected:
abstract System::Threading::Tasks::Task ^ WriteCacheAsync(System::String ^ key, TEmbedding value, System::Threading::CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task WriteCacheAsync(string key, TEmbedding value, System.Threading.CancellationToken cancellationToken);
abstract member WriteCacheAsync : string * 'Embedding * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected MustOverride Function WriteCacheAsync (key As String, value As TEmbedding, cancellationToken As CancellationToken) As Task
Paramètres
- key
- String
Clé de cache.
- value
- TEmbedding
TEmbedding À stocker.
- cancellationToken
- CancellationToken
À CancellationToken surveiller pour les demandes d’annulation.
Retours
Représentant Task l’achèvement de l’opération.