9 writes to MaximumKeyLength
Microsoft.Extensions.Caching.Hybrid.Tests (9)
ServiceConstructionTests.cs (7)
42options.MaximumKeyLength = 937; 126services.AddKeyedHybridCache("one", options => options.MaximumKeyLength = 1); 127services.AddKeyedHybridCache("two", options => options.MaximumKeyLength = 2); 128services.AddKeyedHybridCache(null, options => options.MaximumKeyLength = 3); 163services.AddKeyedHybridCache(typeof(string), options => options.MaximumKeyLength = 1); 164services.AddKeyedHybridCache(typeof(int), options => options.MaximumKeyLength = 2); 165services.AddKeyedHybridCache(null, options => options.MaximumKeyLength = 3);
SizeTests.cs (2)
38options.MaximumKeyLength = maximumKeyLength.GetValueOrDefault(); 107options.MaximumKeyLength = maximumKeyLength.GetValueOrDefault();
4 references to MaximumKeyLength
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.cs (1)
111_maximumKeyLength = _options.MaximumKeyLength;
Microsoft.Extensions.Caching.Hybrid.Tests (3)
ServiceConstructionTests.cs (3)
48Assert.Equal(937, options.MaximumKeyLength); 282Assert.Equal(937, options.MaximumKeyLength); 301Assert.Equal(937, options.MaximumKeyLength);