9 writes to MaximumKeyLength
Microsoft.Extensions.Caching.Hybrid.Tests (9)
ServiceConstructionTests.cs (7)
42
options.
MaximumKeyLength
= 937;
126
services.AddKeyedHybridCache("one", options => options.
MaximumKeyLength
= 1);
127
services.AddKeyedHybridCache("two", options => options.
MaximumKeyLength
= 2);
128
services.AddKeyedHybridCache(null, options => options.
MaximumKeyLength
= 3);
163
services.AddKeyedHybridCache(typeof(string), options => options.
MaximumKeyLength
= 1);
164
services.AddKeyedHybridCache(typeof(int), options => options.
MaximumKeyLength
= 2);
165
services.AddKeyedHybridCache(null, options => options.
MaximumKeyLength
= 3);
SizeTests.cs (2)
38
options.
MaximumKeyLength
= maximumKeyLength.GetValueOrDefault();
107
options.
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)
48
Assert.Equal(937, options.
MaximumKeyLength
);
282
Assert.Equal(937, options.
MaximumKeyLength
);
301
Assert.Equal(937, options.
MaximumKeyLength
);