23 instantiations of MemoryDistributedCacheOptions
Microsoft.AspNetCore.Mvc.TagHelpers.Test (4)
DistributedCacheTagHelperTest.cs (4)
354var storage = GetStorage(Options.Create(new MemoryDistributedCacheOptions { Clock = clock.Object })); 416var storage = GetStorage(Options.Create(new MemoryDistributedCacheOptions { Clock = clock.Object })); 478var storage = GetStorage(Options.Create(new MemoryDistributedCacheOptions { Clock = clock.Object })); 776return new DistributedCacheTagHelperStorage(new MemoryDistributedCache(options ?? Options.Create(new MemoryDistributedCacheOptions())));
Microsoft.AspNetCore.Session.Tests (1)
SessionTests.cs (1)
1158_cache = new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions()));
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (1)
87.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
AzureAIInferenceEmbeddingGeneratorTests.cs (1)
70.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
Microsoft.Extensions.AI.Integration.Tests (6)
ChatClientIntegrationTests.cs (5)
324new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))); 349new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))); 397.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))) 437.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))) 477.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
EmbeddingGeneratorIntegrationTests.cs (1)
86.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
Microsoft.Extensions.AI.Ollama.Tests (2)
OllamaChatClientTests.cs (1)
55.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
OllamaEmbeddingGeneratorTests.cs (1)
35.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIChatClientTests.cs (2)
104.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))) 129.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
OpenAIEmbeddingGeneratorTests.cs (2)
85.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))) 108.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
Microsoft.Extensions.Caching.Hybrid.Tests (4)
ExpirationTests.cs (1)
22var l2 = new LoggingCache(log, new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions { Clock = clock })));
LocalInvalidationTests.cs (1)
57MemoryDistributedCacheOptions options = new();
PayloadTests.cs (2)
277var localCache = new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions())); 304var localCache = new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions()));
12 references to MemoryDistributedCacheOptions
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
DistributedCacheTagHelperTest.cs (1)
774private static IDistributedCacheTagHelperStorage GetStorage(IOptions<MemoryDistributedCacheOptions> options = null)
Microsoft.Extensions.Caching.Hybrid.Tests (5)
BufferReleaseTests.cs (1)
87public TestCache(IOptions<MemoryDistributedCacheOptions> options)
L2Tests.cs (1)
37var localCacheOptions = new Options<MemoryDistributedCacheOptions>(new());
LocalInvalidationTests.cs (1)
57MemoryDistributedCacheOptions options = new();
ServiceConstructionTests.cs (2)
298public CustomMemoryDistributedCache(IOptions<MemoryDistributedCacheOptions> options) 303public CustomMemoryDistributedCache(IOptions<MemoryDistributedCacheOptions> options, ILoggerFactory loggerFactory)
Microsoft.Extensions.Caching.Memory (6)
MemoryCacheServiceCollectionExtensions.cs (2)
90/// The <see cref="Action{MemoryDistributedCacheOptions}"/> to configure the provided <see cref="MemoryDistributedCacheOptions"/>. 93public static IServiceCollection AddDistributedMemoryCache(this IServiceCollection services, Action<MemoryDistributedCacheOptions> setupAction)
MemoryDistributedCache.cs (2)
25public MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions> optionsAccessor) 33public MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions> optionsAccessor, ILoggerFactory loggerFactory)
MemoryDistributedCacheOptions.cs (2)
7/// Specifies options for <see cref="MemoryDistributedCacheOptions"/>. 12/// Initializes a new instance of <see cref="MemoryDistributedCacheOptions"/>.