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)
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
PayloadTests.cs (6)
56clock.Add(TimeSpan.FromSeconds(10)); 85clock.Add(TimeSpan.FromSeconds(58)); 91clock.Add(TimeSpan.FromSeconds(4)); 119clock.Add(TimeSpan.FromSeconds(2)); 149clock.Add(TimeSpan.FromSeconds(2)); 186clock.Add(TimeSpan.FromSeconds(2));