8 implementations of Set
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Storage\DiskBasedResponseCache.cs (1)
186public void Set(string key, byte[] value, DistributedCacheEntryOptions options)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Storage\AzureStorageResponseCache.cs (1)
152public void Set(string key, byte[] value, DistributedCacheEntryOptions options)
Microsoft.Extensions.AI.Tests (1)
TestInMemoryCacheStorage.cs (1)
41public void Set(string key, byte[] value, DistributedCacheEntryOptions options)
Microsoft.Extensions.Caching.Hybrid.Tests (4)
L2Tests.cs (1)
259void IDistributedCache.Set(string key, byte[] value, DistributedCacheEntryOptions options)
NullDistributedCache.cs (1)
25void IDistributedCache.Set(string key, byte[] value, DistributedCacheEntryOptions options)
StampedeTests.cs (1)
55void IDistributedCache.Set(string key, byte[] value, DistributedCacheEntryOptions options) => throw new NotSupportedException("Intentionally not provided");
UnreliableL2Tests.cs (1)
178public void Set(string key, byte[] value, DistributedCacheEntryOptions options) => throw new NotSupportedException(); // only async API in use
Microsoft.Extensions.Caching.Memory (1)
MemoryDistributedCache.cs (1)
73public void Set(string key, byte[] value, DistributedCacheEntryOptions options)
6 references to Set
Microsoft.Extensions.Caching.Abstractions (3)
DistributedCacheExtensions.cs (2)
30cache.Set(key, value, DefaultOptions); 75cache.Set(key, Encoding.UTF8.GetBytes(value), options);
IBufferDistributedCache.cs (1)
40/// <remarks>This method is functionally similar to <see cref="IDistributedCache.Set(string, byte[], DistributedCacheEntryOptions)"/>, but avoids the array allocation.</remarks>
Microsoft.Extensions.Caching.Hybrid.Tests (3)
DistributedCacheTests.cs (1)
72cache.Set(key, expected, _fiveMinutes);
L2Tests.cs (2)
169Tail.Set(key, value.ToArray(), options); 263Tail.Set(key, value, options);