8 implementations of SetAsync
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Storage\DiskBasedResponseCache.cs (1)
198public async Task SetAsync(
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Storage\AzureStorageResponseCache.cs (1)
165public async Task SetAsync(
Microsoft.Extensions.AI.Tests (1)
TestInMemoryCacheStorage.cs (1)
46public Task SetAsync(string key, byte[] value, DistributedCacheEntryOptions options, CancellationToken token = default)
Microsoft.Extensions.Caching.Hybrid.Tests (4)
L2Tests.cs (1)
266Task IDistributedCache.SetAsync(string key, byte[] value, DistributedCacheEntryOptions options, CancellationToken token)
NullDistributedCache.cs (1)
30Task IDistributedCache.SetAsync(string key, byte[] value, DistributedCacheEntryOptions options, CancellationToken token) => Task.CompletedTask;
StampedeTests.cs (1)
57Task IDistributedCache.SetAsync(string key, byte[] value, DistributedCacheEntryOptions options, CancellationToken token) => throw new NotSupportedException("Intentionally not provided");
UnreliableL2Tests.cs (1)
180public Task SetAsync(string key, byte[] value, DistributedCacheEntryOptions options, CancellationToken token = default)
Microsoft.Extensions.Caching.Memory (1)
MemoryDistributedCache.cs (1)
95public Task SetAsync(string key, byte[] value, DistributedCacheEntryOptions options, CancellationToken token = default(CancellationToken))
10 references to SetAsync
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\DistributedCacheTagHelperStorage.cs (1)
39return _distributedCache.SetAsync(key, value, options);
Microsoft.AspNetCore.Session (1)
DistributedSession.cs (1)
279await _cache.SetAsync(
Microsoft.Extensions.Caching.Abstractions (3)
DistributedCacheExtensions.cs (2)
47return cache.SetAsync(key, value, DefaultOptions, token); 107return cache.SetAsync(key, Encoding.UTF8.GetBytes(value), options, token);
IBufferDistributedCache.cs (1)
50/// <remarks>This method is functionally similar to <see cref="IDistributedCache.SetAsync(string, byte[], DistributedCacheEntryOptions, CancellationToken)"/>, but avoids the array allocation.</remarks>
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.L2.cs (1)
95return new(_backendCache!.SetAsync(key, arr, options, token));
Microsoft.Extensions.Caching.Hybrid.Tests (4)
DistributedCacheTests.cs (1)
118await cache.SetAsync(key, expected, _fiveMinutes);
L2Tests.cs (2)
176return new(Tail.SetAsync(key, value.ToArray(), options, token)); 270return Tail.SetAsync(key, value, options, token);
UnreliableL2Tests.cs (1)
181=> TrackLast(ThrowIfBrokenAsync(WriteBreak) ?? Tail.SetAsync(key, value, options, token));