Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for expireAfterWrite (0.19 sec)

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

            .addEqualityGroup(parse("expireAfterAccess=60m"), parse("expireAfterAccess=1h"))
            .addEqualityGroup(parse("expireAfterWrite=60s"), parse("expireAfterWrite=1m"))
            .addEqualityGroup(parse("expireAfterWrite=60m"), parse("expireAfterWrite=1h"))
            .addEqualityGroup(parse("weakKeys"), parse("weakKeys"))
            .addEqualityGroup(parse("softValues"), parse("softValues"))
    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. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

            .addEqualityGroup(parse("expireAfterAccess=60m"), parse("expireAfterAccess=1h"))
            .addEqualityGroup(parse("expireAfterWrite=60s"), parse("expireAfterWrite=1m"))
            .addEqualityGroup(parse("expireAfterWrite=60m"), parse("expireAfterWrite=1h"))
            .addEqualityGroup(parse("weakKeys"), parse("weakKeys"))
            .addEqualityGroup(parse("softValues"), parse("softValues"))
    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. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

            CacheBuilder.newBuilder().expireAfterWrite(3600, SECONDS);
        assertThrows(IllegalStateException.class, () -> builder.expireAfterWrite(3600, SECONDS));
      }
    
      @GwtIncompatible // Duration
      public void testTimeToLive_setTwice_duration() {
        CacheBuilder<Object, Object> builder =
            CacheBuilder.newBuilder().expireAfterWrite(Duration.ofHours(1));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        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);
        cache.put(4, 2);
    
        fakeTicker.advance(999, MILLISECONDS);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

      private final Ticker ticker;
      private final long expireAfterWrite;
      private final long expireAfterAccess;
    
      LocalCache(CacheBuilder<? super K, ? super V> builder, CacheLoader<? super K, V> loader) {
        this.loader = loader;
        this.removalListener = builder.removalListener;
        this.expireAfterAccess = builder.expireAfterAccessNanos;
        this.expireAfterWrite = builder.expireAfterWriteNanos;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/CrawlingConfigHelper.java

        public void init() {
            if (logger.isDebugEnabled()) {
                logger.debug("Initialize {}", this.getClass().getSimpleName());
            }
            crawlingConfigCache = CacheBuilder.newBuilder().maximumSize(100).expireAfterWrite(10, TimeUnit.MINUTES).build();
        }
    
        public ConfigType getConfigType(final String configId) {
            if (configId == null || configId.length() < 2) {
                return null;
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java

        @PostConstruct
        public void init() {
            statsLogger = LogManager.getLogger(loggerName);
            statsCache = CacheBuilder.newBuilder().maximumSize(maxCacheSize).expireAfterWrite(cacheExpireAfterWrite, TimeUnit.MILLISECONDS)
                    .build(new CacheLoader<String, StatsObject>() {
                        @Override
                        public StatsObject load(final String key) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

                Pattern.compile("[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,6}", Pattern.CASE_INSENSITIVE);
    
        private static LoadingCache<String, Long> resourceHashCache =
                CacheBuilder.newBuilder().maximumSize(1000).expireAfterWrite(10, TimeUnit.MINUTES).build(new CacheLoader<String, Long>() {
                    @Override
                    public Long load(final String key) throws Exception {
                        try {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/PluginHelper.java

        private static final Logger logger = LogManager.getLogger(PluginHelper.class);
    
        protected LoadingCache<ArtifactType, Artifact[]> availableArtifacts = CacheBuilder.newBuilder().maximumSize(10)
                .expireAfterWrite(5, TimeUnit.MINUTES).build(new CacheLoader<ArtifactType, Artifact[]>() {
                    @Override
                    public Artifact[] load(final ArtifactType key) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 01:47:10 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/SearchLogHelper.java

                logger.debug("Initialize {}", this.getClass().getSimpleName());
            }
            userInfoCache = CacheBuilder.newBuilder()//
                    .maximumSize(userInfoCacheSize)//
                    .expireAfterWrite(userCheckInterval, TimeUnit.MILLISECONDS)//
                    .build(new CacheLoader<String, UserInfo>() {
                        @Override
                        public UserInfo load(final String key) throws Exception {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jul 22 02:07:37 UTC 2024
    - 21.7K bytes
    - Viewed (0)
Back to top