6 implementations of Set
Microsoft.AspNetCore.Session.Tests (1)
SessionTests.cs (1)
1204public void Set(string key, byte[] value, DistributedCacheEntryOptions options) => _cache.Set(key, value, options);
Microsoft.Extensions.Caching.Hybrid.Tests (2)
L2Tests.cs (1)
258void 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");
Microsoft.Extensions.Caching.Memory (1)
MemoryDistributedCache.cs (1)
72public void Set(string key, byte[] value, DistributedCacheEntryOptions options)
Microsoft.Extensions.Caching.SqlServer (1)
SqlServerCache.cs (1)
169public void Set(string key, byte[] value, DistributedCacheEntryOptions options)
Microsoft.Extensions.Caching.StackExchangeRedis (1)
RedisCache.cs (1)
153public void Set(string key, byte[] value, DistributedCacheEntryOptions options)
18 references to Set
Microsoft.Extensions.Caching.Abstractions (3)
DistributedCacheExtensions.cs (2)
28cache.Set(key, value, new DistributedCacheEntryOptions()); 73cache.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 (1)
DistributedCacheTests.cs (1)
73cache.Set(key, expected, _fiveMinutes);
Microsoft.Extensions.Caching.MicroBenchmarks (1)
DistributedCacheBenchmarks.cs (1)
112_backend.Set(key, value, options);
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (13)
TimeExpirationTests.cs (13)
31cache.Set(key, value, new DistributedCacheEntryOptions().SetAbsoluteExpiration(expected)); 45cache.Set(key, value, new DistributedCacheEntryOptions().SetAbsoluteExpiration(TimeSpan.FromSeconds(1))); 66cache.Set(key, value, new DistributedCacheEntryOptions().SetAbsoluteExpiration(TimeSpan.FromSeconds(0.25))); 81cache.Set(key, value, new DistributedCacheEntryOptions().SetAbsoluteExpiration(TimeSpan.FromMinutes(-1))); 98cache.Set(key, value, new DistributedCacheEntryOptions().SetAbsoluteExpiration(TimeSpan.Zero)); 112cache.Set(key, value, new DistributedCacheEntryOptions().SetAbsoluteExpiration(TimeSpan.FromSeconds(1))); 132cache.Set(key, value, new DistributedCacheEntryOptions().SetAbsoluteExpiration(TimeSpan.FromSeconds(0.25))); 147cache.Set(key, value, new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromMinutes(-1))); 161cache.Set(key, value, new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.Zero)); 175cache.Set(key, value, new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromSeconds(1))); 193cache.Set(key, value, new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromSeconds(0.25))); 206cache.Set(key, value, new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromSeconds(1))); 231cache.Set(key, value, new DistributedCacheEntryOptions()