Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testExpireAfterWrite (2.42 sec)

  1. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        assertEquals(Integer.valueOf(30), cache.getIfPresent(2));
        fakeTicker.advance(1000, MILLISECONDS);
        assertEquals(null, cache.getIfPresent(0));
      }
    
      public void testExpireAfterWrite() {
        final Cache<Integer, Integer> cache =
            CacheBuilder.newBuilder().expireAfterWrite(1000, MILLISECONDS).ticker(fakeTicker).build();
    
        cache.put(10, 100);
        cache.put(20, 200);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

            long writeTime = e.getWriteTime();
            assertTrue(writeTime >= lastWriteTime);
            lastWriteTime = writeTime;
          }
        }
      }
    
      public void testExpireAfterWrite() {
        FakeTicker ticker = new FakeTicker();
        LocalCache<Object, Object> map =
            makeLocalCache(
                createCacheBuilder()
                    .concurrencyLevel(1)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/LocalCacheTest.java

            long writeTime = e.getWriteTime();
            assertTrue(writeTime >= lastWriteTime);
            lastWriteTime = writeTime;
          }
        }
      }
    
      public void testExpireAfterWrite() {
        FakeTicker ticker = new FakeTicker();
        LocalCache<Object, Object> map =
            makeLocalCache(
                createCacheBuilder()
                    .concurrencyLevel(1)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
Back to top