1 write to _storage
Microsoft.Extensions.AI (1)
ChatCompletion\DistributedCachingChatClient.cs (1)
31
_storage
= Throw.IfNull(storage);
4 references to _storage
Microsoft.Extensions.AI (4)
ChatCompletion\DistributedCachingChatClient.cs (4)
48
if (await
_storage
.GetAsync(key, cancellationToken).ConfigureAwait(false) is byte[] existingJson)
62
if (await
_storage
.GetAsync(key, cancellationToken).ConfigureAwait(false) is byte[] existingJson)
78
await
_storage
.SetAsync(key, newJson, cancellationToken).ConfigureAwait(false);
89
await
_storage
.SetAsync(key, newJson, cancellationToken).ConfigureAwait(false);