Langue

DistributedCachingEmbeddingGenerator<TInput,TEmbedding>.WriteCacheAsync Méthode

Définition

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.

S’applique à