12 references to SetAsync
Microsoft.Extensions.AI (3)
ChatCompletion\DistributedCachingChatClient.cs (2)
95
await _storage.
SetAsync
(key, newJson, cancellationToken);
106
await _storage.
SetAsync
(key, newJson, cancellationToken);
Embeddings\DistributedCachingEmbeddingGenerator.cs (1)
76
await _storage.
SetAsync
(key, newJson, cancellationToken);
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (7)
ResponseCacheTester.cs (7)
47
await cache.
SetAsync
(_keyA, _responseA);
65
await cache.
SetAsync
(_keyA, _responseA);
92
await cache.
SetAsync
(_keyA, _responseA);
117
await cache.
SetAsync
(_keyA, _responseA);
121
await cache2.
SetAsync
(_keyB, _responseB);
140
await cache.
SetAsync
(_keyA, _responseA);
170
await cache.
SetAsync
(_keyA, _responseA);
Microsoft.Extensions.Caching.Hybrid.Tests (1)
SampleUsage.cs (1)
106
await cache.
SetAsync
(key, bytes, token);
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (1)
RedisCacheSetAndRemoveTests.cs (1)
124
await cache.
SetAsync
(key, Array.Empty<byte>());