@Test public void testStale() { doReturn(true).when(cache).checkIfAnyStale(); strategy.onCacheRead(context); verify(context).invalidateAll(eq(true)); }
@Override public void onCacheRead(String experimentName, CachingContext context) { invalidateAllIfStale(context); }
PeriodicStaleCheckingCacheStrategy extends BasicCacheStrategy { @Override public void onCacheRead(String experimentName, CachingContext context) { invalidateAllIfStale(context); } }
PeriodicStaleCheckingCacheStrategy extends BasicCacheStrategy { @Override public void onCacheRead(String experimentName, CachingContext context) { invalidateAllIfStale(context); } PeriodicStaleCheckingCacheStrategy(Duration period); }
PeriodicStaleCheckingCacheStrategy extends BasicCacheStrategy { @Override public void onCacheRead(String experimentName, CachingContext context) { invalidateAllIfStale(context); } PeriodicStaleCheckingCacheStrategy(Duration period); @Override void onCacheRead(String experimentName, CachingContext context); @Override void onCacheRead(CachingContext context); }
PeriodicStaleCheckingCacheStrategy extends BasicCacheStrategy { @Override public void onCacheRead(String experimentName, CachingContext context) { invalidateAllIfStale(context); } PeriodicStaleCheckingCacheStrategy(Duration period); @Override void onCacheRead(String experimentName, CachingContext context); @Override void onCacheRead(CachingContext context);  }