9 instantiations of DistributedCacheEntryOptions
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Session (1)
Microsoft.Extensions.Caching.Abstractions (2)
Microsoft.Extensions.Caching.Hybrid (3)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Caching.SqlServer (1)
72 references to DistributedCacheEntryOptions
Microsoft.AspNetCore.Mvc.TagHelpers (7)
Microsoft.Extensions.AI.Evaluation.Reporting (2)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (2)
Microsoft.Extensions.AI.Tests (2)
Microsoft.Extensions.Caching.Abstractions (19)
IBufferDistributedCache.cs (4)
40/// <remarks>This method is functionally similar to <see cref="IDistributedCache.Set(string, byte[], DistributedCacheEntryOptions)"/>, but avoids the array allocation.</remarks>
41void Set(string key, ReadOnlySequence<byte> value, DistributedCacheEntryOptions options);
50/// <remarks>This method is functionally similar to <see cref="IDistributedCache.SetAsync(string, byte[], DistributedCacheEntryOptions, CancellationToken)"/>, but avoids the array allocation.</remarks>
51ValueTask SetAsync(string key, ReadOnlySequence<byte> value, DistributedCacheEntryOptions options, CancellationToken token = default);
Microsoft.Extensions.Caching.Hybrid (6)
Microsoft.Extensions.Caching.Hybrid.Tests (13)
L2Tests.cs (4)
165void IBufferDistributedCache.Set(string key, ReadOnlySequence<byte> value, DistributedCacheEntryOptions options)
172ValueTask IBufferDistributedCache.SetAsync(string key, ReadOnlySequence<byte> value, DistributedCacheEntryOptions options, CancellationToken token)
259void IDistributedCache.Set(string key, byte[] value, DistributedCacheEntryOptions options)
266Task IDistributedCache.SetAsync(string key, byte[] value, DistributedCacheEntryOptions options, CancellationToken token)
Microsoft.Extensions.Caching.Memory (2)
Microsoft.Extensions.Caching.SqlServer (10)
Microsoft.Extensions.Caching.StackExchangeRedis (9)
RedisCache.cs (9)
155public void Set(string key, byte[] value, DistributedCacheEntryOptions options)
158void IBufferDistributedCache.Set(string key, ReadOnlySequence<byte> value, DistributedCacheEntryOptions options)
161private void SetImpl(string key, ReadOnlySequence<byte> value, DistributedCacheEntryOptions options)
202public Task SetAsync(string key, byte[] value, DistributedCacheEntryOptions options, CancellationToken token = default)
205ValueTask IBufferDistributedCache.SetAsync(string key, ReadOnlySequence<byte> value, DistributedCacheEntryOptions options, CancellationToken token)
208private async Task SetImplAsync(string key, ReadOnlySequence<byte> value, DistributedCacheEntryOptions options, CancellationToken token = default)
576private static long? GetExpirationInSeconds(DateTimeOffset creationTime, DateTimeOffset? absoluteExpiration, DistributedCacheEntryOptions options)
595private static DateTimeOffset? GetAbsoluteExpiration(DateTimeOffset creationTime, DistributedCacheEntryOptions options)
601nameof(DistributedCacheEntryOptions.AbsoluteExpiration),