Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for expireAfterAccess (0.11 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 52K bytes
    - Viewed (0)
  4. 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)
  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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        assertEquals(Integer.valueOf(6), cache.apply(7));
      }
    
      public void testExpireAfterAccess() {
        final Cache<Integer, Integer> cache =
            CacheBuilder.newBuilder().expireAfterAccess(1000, MILLISECONDS).ticker(fakeTicker).build();
    
        cache.put(0, 10);
        cache.put(2, 30);
    
        fakeTicker.advance(999, MILLISECONDS);
        assertEquals(Integer.valueOf(30), cache.getIfPresent(2));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java

        protected long cacheDuration = 10; // min
    
        @Resource
        public void init() {
            xpathAPICache =
                    CacheBuilder.newBuilder().expireAfterAccess(cacheDuration, TimeUnit.MINUTES).build(new CacheLoader<String, XPathAPI>() {
                        @Override
                        public XPathAPI load(final String key) {
                            if (logger.isDebugEnabled()) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/SystemHelper.java

            filterPathEncoding = fessConfig.getPathEncoding();
            supportedLanguages = fessConfig.getSupportedLanguagesAsArray();
            langItemsCache = CacheBuilder.newBuilder().maximumSize(20).expireAfterAccess(1, TimeUnit.HOURS)
                    .build(new CacheLoader<String, List<Map<String, String>>>() {
                        @Override
                        public List<Map<String, String>> load(final String key) throws Exception {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 17 12:10:08 UTC 2024
    - 27.2K bytes
    - Viewed (0)
Back to top