21 references to Add
Microsoft.Extensions.Caching.Hybrid.Tests (21)
DistributedCacheTests.cs (8)
81Clock.Add(TimeSpan.FromMinutes(4)); 86Clock.Add(TimeSpan.FromMinutes(2)); 127Clock.Add(TimeSpan.FromMinutes(4)); 132Clock.Add(TimeSpan.FromMinutes(2)); 195Clock.Add(TimeSpan.FromMinutes(4)); 200Clock.Add(TimeSpan.FromMinutes(2)); 257Clock.Add(TimeSpan.FromMinutes(4)); 262Clock.Add(TimeSpan.FromMinutes(2));
ExpirationTests.cs (3)
44clock.Add(TimeSpan.FromSeconds(45)); // should still be fine from L1 (L1 has 1 minute expiration) 47clock.Add(TimeSpan.FromSeconds(45)); // should still be fine from L2 (L1 now expired, but fetches from L2 and detects 0:30 remaining, which limits L1 to 0:30) 50clock.Add(TimeSpan.FromSeconds(45)); // should now be expired
FactoryOptionsTests.cs (1)
188clock.Add(TimeSpan.FromSeconds(45));
L2Tests.cs (2)
175clock.Add(TimeSpan.FromSeconds(1)); 178clock.Add(TimeSpan.FromSeconds(1));
PayloadTests.cs (7)
57clock.Add(TimeSpan.FromSeconds(10)); 195clock.Add(TimeSpan.FromSeconds(58)); 201clock.Add(TimeSpan.FromSeconds(4)); 235clock.Add(TimeSpan.FromSeconds(2)); 271clock.Add(TimeSpan.FromSeconds(2)); 314clock.Add(TimeSpan.FromSeconds(2)); 584clock.Add(TimeSpan.FromSeconds(10));