- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for expireAfterAccess (0.1 sec)
-
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 19.1K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 19.1K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 52K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 24.9K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 18:00:07 UTC 2021 - 2.7K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 110.6K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 112.3K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 27 19:19:19 UTC 2024 - 21.6K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 51.6K bytes - Viewed (0) -
android/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 Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 18:00:07 UTC 2021 - 2.7K bytes - Viewed (0)