DistributedCachingEmbeddingGenerator<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:
override System::Threading::Tasks::Task ^ WriteCacheAsync(System::String ^ key, TEmbedding value, System::Threading::CancellationToken cancellationToken);
protected override System.Threading.Tasks.Task WriteCacheAsync(string key, TEmbedding value, System.Threading.CancellationToken cancellationToken);
override this.WriteCacheAsync : string * 'Embedding * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overrides 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.