24 instantiations of MemoryDistributedCacheOptions
Microsoft.Extensions.AI.Integration.Tests (6)
ChatClientIntegrationTests.cs (5)
654new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))); 679new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))); 727.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))) 767.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))) 809.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
EmbeddingGeneratorIntegrationTests.cs (1)
88.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
Microsoft.Extensions.AI.OpenAI.Tests (6)
OpenAIChatClientTests.cs (2)
69.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))) 94.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
OpenAIEmbeddingGeneratorTests.cs (2)
62.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))) 85.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
OpenAIRequestPoliciesTests.cs (1)
79.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
OpenAIResponseClientTests.cs (1)
71.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
Microsoft.Extensions.Caching.Hybrid.Tests (12)
ExpirationTests.cs (1)
23var l2 = new LoggingCache(log, new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions { Clock = clock })));
FactoryOptionsTests.cs (4)
33var captured = new CapturingCache(new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions()))); 138var captured = new CapturingCache(new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions()))); 163var l2 = new LoggingCache(log, new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions { Clock = clock }))); 271var sharedL2 = new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions()));
L2Tests.cs (2)
38var localCacheOptions = new Options<MemoryDistributedCacheOptions>(new()); 162var shared = new MemoryDistributedCache(new Options<MemoryDistributedCacheOptions>(new()));
LocalInvalidationTests.cs (1)
58MemoryDistributedCacheOptions options = new();
PayloadTests.cs (4)
111var backend = new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions())); 434var localCache = new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions())); 461var localCache = new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions())); 500localCache = new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions()));
14 references to MemoryDistributedCacheOptions
Microsoft.Extensions.Caching.Hybrid.Tests (8)
BufferReleaseTests.cs (1)
87public TestCache(IOptions<MemoryDistributedCacheOptions> options)
L2Tests.cs (2)
38var localCacheOptions = new Options<MemoryDistributedCacheOptions>(new()); 162var shared = new MemoryDistributedCache(new Options<MemoryDistributedCacheOptions>(new()));
LocalInvalidationTests.cs (1)
58MemoryDistributedCacheOptions options = new();
ServiceConstructionTests.cs (4)
637public CustomMemoryDistributedCache1(IOptions<MemoryDistributedCacheOptions> options) 642public CustomMemoryDistributedCache1(IOptions<MemoryDistributedCacheOptions> options, ILoggerFactory loggerFactory) 650public CustomMemoryDistributedCache2(IOptions<MemoryDistributedCacheOptions> options) 655public CustomMemoryDistributedCache2(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"/>.