17 references to Add
Microsoft.Extensions.Caching.Hybrid.Tests (17)
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)
43clock.Add(TimeSpan.FromSeconds(45)); // should still be fine from L1 (L1 has 1 minute expiration) 46clock.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) 49clock.Add(TimeSpan.FromSeconds(45)); // should now be expired
PayloadTests.cs (6)
55clock.Add(TimeSpan.FromSeconds(10)); 84clock.Add(TimeSpan.FromSeconds(58)); 90clock.Add(TimeSpan.FromSeconds(4)); 118clock.Add(TimeSpan.FromSeconds(2)); 148clock.Add(TimeSpan.FromSeconds(2)); 185clock.Add(TimeSpan.FromSeconds(2));