Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for expireAfterAccess (0.06 sec)

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

            .addEqualityGroup(parse("maximumWeight=15"), parse("maximumWeight=15"))
            .addEqualityGroup(parse("expireAfterAccess=60s"), parse("expireAfterAccess=1m"))
            .addEqualityGroup(parse("expireAfterAccess=60m"), parse("expireAfterAccess=1h"))
            .addEqualityGroup(parse("expireAfterWrite=60s"), parse("expireAfterWrite=1m"))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

            .addEqualityGroup(parse("maximumWeight=15"), parse("maximumWeight=15"))
            .addEqualityGroup(parse("expireAfterAccess=60s"), parse("expireAfterAccess=1m"))
            .addEqualityGroup(parse("expireAfterAccess=60m"), parse("expireAfterAccess=1h"))
            .addEqualityGroup(parse("expireAfterWrite=60s"), parse("expireAfterWrite=1m"))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/CacheBuilder.java

       * @throws IllegalStateException if {@link #expireAfterAccess} was already set
       */
      @SuppressWarnings("GoodTime") // should accept a Duration
      @CanIgnoreReturnValue
      public CacheBuilder<K, V> expireAfterAccess(long duration, TimeUnit unit) {
        checkState(
            expireAfterAccessNanos == UNSET_INT,
            "expireAfterAccess was already set to %s ns",
            expireAfterAccessNanos);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

        IntStream.range(0, count).parallel().forEach(consumer);
      }
    
      @Override
      public void setUp() throws Exception {
        super.setUp();
        this.cache =
            CacheBuilder.newBuilder()
                .expireAfterAccess(500000, MILLISECONDS)
                .maximumSize(count)
                .build();
      }
    
      public void testComputeIfAbsent() {
        // simultaneous insertion for same key, expect 1 winner
        doParallelCacheOp(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

            ConcurrentMapTestSuiteBuilder.using(
                    new TestStringCacheGenerator(
                        createCacheBuilder()
                            .expireAfterAccess(1, SECONDS)
                            .ticker(new SerializableTicker())))
                .named("LocalCache with expireAfterAccess") // SerializableTicker never advances
                .withFeatures(
                    CollectionSize.ANY,
                    MapFeature.GENERAL_PURPOSE,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 110.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

        }
        if (expireAfterWrite != null) {
          builder.expireAfterWrite(expireAfterWrite.duration, expireAfterWrite.unit);
        }
        if (expireAfterAccess != null) {
          builder.expireAfterAccess(expireAfterAccess.duration, expireAfterAccess.unit);
        }
        if (refresh != null) {
          builder.refreshAfterWrite(refresh.duration, refresh.unit);
        }
        if (keyStrength != null) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

      private boolean isExpired(Timestamped<V> stamped) {
        if ((expireAfterAccess == UNSET_INT) && (expireAfterWrite == UNSET_INT)) {
          return false;
        }
    
        boolean expireWrite = stamped.getWriteTimestamp() + expireAfterWrite <= currentTimeNanos();
        boolean expireAccess = stamped.getAccessTimestamp() + expireAfterAccess <= currentTimeNanos();
    
        if (expireAfterAccess == UNSET_INT) {
          return expireWrite;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        CacheBuilder.newBuilder().expireAfterAccess(1, NANOSECONDS).build(identityLoader());
        // well, it didn't blow up.
      }
    
      public void testTimeToIdle_setTwice() {
        CacheBuilder<Object, Object> builder =
            CacheBuilder.newBuilder().expireAfterAccess(3600, SECONDS);
        assertThrows(IllegalStateException.class, () -> builder.expireAfterAccess(3600, SECONDS));
      }
    
      @GwtIncompatible // Duration
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        CacheBuilder.newBuilder().expireAfterAccess(1, NANOSECONDS).build(identityLoader());
        // well, it didn't blow up.
      }
    
      public void testTimeToIdle_setTwice() {
        CacheBuilder<Object, Object> builder =
            CacheBuilder.newBuilder().expireAfterAccess(3600, SECONDS);
        assertThrows(IllegalStateException.class, () -> builder.expireAfterAccess(3600, SECONDS));
      }
    
      @GwtIncompatible // Duration
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/RemovalCause.java

        boolean wasEvicted() {
          return true;
        }
      },
    
      /**
       * The entry's expiration timestamp has passed. This can occur when using {@link
       * CacheBuilder#expireAfterWrite} or {@link CacheBuilder#expireAfterAccess}.
       */
      EXPIRED {
        @Override
        boolean wasEvicted() {
          return true;
        }
      },
    
      /**
       * The entry was evicted due to size constraints. This can occur when using {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top