Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for testTimeToIdleAndToLive (0.09 seconds)

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

            CacheBuilder.newBuilder().expireAfterAccess(Duration.ofHours(1));
        assertThrows(IllegalStateException.class, () -> builder.expireAfterAccess(Duration.ofHours(1)));
      }
    
      public void testTimeToIdleAndToLive() {
        LoadingCache<?, ?> unused =
            CacheBuilder.newBuilder()
                .expireAfterWrite(1, NANOSECONDS)
                .expireAfterAccess(1, NANOSECONDS)
                .build(identityLoader());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

            CacheBuilder.newBuilder().expireAfterAccess(Duration.ofHours(1));
        assertThrows(IllegalStateException.class, () -> builder.expireAfterAccess(Duration.ofHours(1)));
      }
    
      public void testTimeToIdleAndToLive() {
        LoadingCache<?, ?> unused =
            CacheBuilder.newBuilder()
                .expireAfterWrite(1, NANOSECONDS)
                .expireAfterAccess(1, NANOSECONDS)
                .build(identityLoader());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.6K bytes
    - Click Count (0)
Back to Top