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