9 writes to MaximumKeyLength
Microsoft.Extensions.Caching.Hybrid.Tests (9)
ServiceConstructionTests.cs (7)
41options.MaximumKeyLength = 937; 125services.AddKeyedHybridCache("one", options => options.MaximumKeyLength = 1); 126services.AddKeyedHybridCache("two", options => options.MaximumKeyLength = 2); 127services.AddKeyedHybridCache(null, options => options.MaximumKeyLength = 3); 162services.AddKeyedHybridCache(typeof(string), options => options.MaximumKeyLength = 1); 163services.AddKeyedHybridCache(typeof(int), options => options.MaximumKeyLength = 2); 164services.AddKeyedHybridCache(null, options => options.MaximumKeyLength = 3);
SizeTests.cs (2)
38options.MaximumKeyLength = maximumKeyLength.GetValueOrDefault(); 107options.MaximumKeyLength = maximumKeyLength.GetValueOrDefault();
12 references to MaximumKeyLength
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.cs (1)
111_maximumKeyLength = _options.MaximumKeyLength;
Microsoft.Extensions.Caching.Hybrid.Tests (11)
ServiceConstructionTests.cs (11)
47Assert.Equal(937, options.MaximumKeyLength); 131Assert.Equal(1, one.Options.MaximumKeyLength); 134Assert.Equal(2, two.Options.MaximumKeyLength); 137Assert.Equal(3, threeKeyed.Options.MaximumKeyLength); 140Assert.Equal(3, threeUnkeyed.Options.MaximumKeyLength); 168Assert.Equal(1, one.Options.MaximumKeyLength); 171Assert.Equal(2, two.Options.MaximumKeyLength); 174Assert.Equal(3, threeKeyed.Options.MaximumKeyLength); 177Assert.Equal(3, threeUnkeyed.Options.MaximumKeyLength); 281Assert.Equal(937, options.MaximumKeyLength); 300Assert.Equal(937, options.MaximumKeyLength);