- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testExpireAfterWriteAndAccess (0.1 sec)
-
guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java
cache.put(10, 20); assertEquals(Integer.valueOf(20), cache.getIfPresent(10)); fakeTicker.advance(1000, MILLISECONDS); assertEquals(null, cache.getIfPresent(10)); } public void testExpireAfterWriteAndAccess() { final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() .expireAfterWrite(1000, MILLISECONDS) .expireAfterAccess(500, MILLISECONDS)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 14.4K bytes - Viewed (0)