Langue

DistributedCachingChatClient.WriteCacheStreamingAsync Méthode

Définition

Stocke une liste de ChatResponseUpdate valeurs dans le cache sous-jacent. Cela est utilisé lorsqu’il existe un appel à GetStreamingResponseAsync(IEnumerable<ChatMessage>, ChatOptions, CancellationToken).

protected:
 override System::Threading::Tasks::Task ^ WriteCacheStreamingAsync(System::String ^ key, System::Collections::Generic::IReadOnlyList<Microsoft::Extensions::AI::ChatResponseUpdate ^> ^ value, System::Threading::CancellationToken cancellationToken);
protected override System.Threading.Tasks.Task WriteCacheStreamingAsync(string key, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.ChatResponseUpdate> value, System.Threading.CancellationToken cancellationToken);
override this.WriteCacheStreamingAsync : string * System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.ChatResponseUpdate> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overrides Function WriteCacheStreamingAsync (key As String, value As IReadOnlyList(Of ChatResponseUpdate), cancellationToken As CancellationToken) As Task

Paramètres

key
String

Clé de cache.

cancellationToken
CancellationToken

À CancellationToken surveiller pour les demandes d’annulation.

Retours

Représentant Task l’achèvement de l’opération.

S’applique à