Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 75 for oldest (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. internal/lru/lru.go

    		return true
    	}
    	return false
    }
    
    // RemoveOldest removes the oldest item from the cache.
    func (c *LRU[K, V]) RemoveOldest() (key K, value V, ok bool) {
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	if ent := c.evictList.Back(); ent != nil {
    		c.removeElement(ent)
    		return ent.Key, ent.Value, true
    	}
    	return
    }
    
    // GetOldest returns the oldest entry
    func (c *LRU[K, V]) GetOldest() (key K, value V, ok bool) {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

        val toEvictIdleAtNs: Long
        when {
          // We had at least one OLD connection. Close the oldest one.
          earliestOldConnection != null -> {
            toEvict = earliestOldConnection
            toEvictIdleAtNs = earliestOldIdleAtNs
          }
    
          // We have too many EVICTABLE connections. Close the oldest one.
          evictableConnectionCount > maxIdleConnections -> {
            toEvict = earliestEvictableConnection
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 11.1K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/helper/LogNotificationHelperTest.java

                helper.offer(new LogNotificationEvent(i, "ERROR", "org.test", "msg" + i, null));
            }
            List<LogNotificationEvent> events = helper.drainAll();
            // The newest events should be retained; oldest dropped
            // Last event should be msg1099
            LogNotificationEvent last = events.get(events.size() - 1);
            assertEquals("msg1099", last.getMessage());
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/chat/ChatSessionManager.java

                }
    
                final int toRemove = sessionCache.size() - maxSize;
                logger.warn("Session cache reached maximum size. Removing oldest sessions. currentSize={}, maxSize={}, removing={}",
                        sessionCache.size(), maxSize, toRemove);
    
                // Remove oldest sessions
                sessionCache.entrySet()
                        .stream()
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 13:27:59 GMT 2026
    - 13.7K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/helper/LogNotificationHelper.java

            }
            if (logNotificationTarget != null) {
                logNotificationTarget.flush();
            }
        }
    
        /**
         * Offers an event to the buffer. If the buffer exceeds the maximum size, the oldest event is dropped.
         *
         * @param event the log notification event to add
         */
        public void offer(final LogNotificationEvent event) {
            int maxBufferSize;
            try {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java

            return request;
        }
    
        /**
         * Adds conversation history to the request, truncating from oldest to fit within the character budget.
         *
         * @param request the LLM chat request
         * @param history the conversation history (oldest first)
         * @param budgetChars the maximum total characters for history messages
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 72K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

         *
         * <p>Be careful when targeting an older SDK than you are building against (most commonly when
         * building for Android): Ensure that any object you pass implements the interface not just in
         * your current SDK version but also at the oldest version you support. For example, <a
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 101.7K bytes
    - Click Count (0)
  8. .github/workflows/test.yml

            include:
              - os: macos-latest
                python-version: "3.10"
                coverage: coverage
                uv-resolution: lowest-direct
              - os: windows-latest
                python-version: "3.12"
                coverage: coverage
                uv-resolution: lowest-direct
              - os: ubuntu-latest
                python-version: "3.13"
                coverage: coverage
                uv-resolution: highest
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 12:36:49 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

      }
    
      public void testIntWriteBytesTo() {
        byte[] dest = new byte[4];
        HashCode.fromInt(42).writeBytesTo(dest, 0, 4);
        assertThat(dest).isEqualTo(HashCode.fromInt(42).asBytes());
      }
    
      public void testLongWriteBytesTo() {
        byte[] dest = new byte[8];
        HashCode.fromLong(42).writeBytesTo(dest, 0, 8);
        assertThat(dest).isEqualTo(HashCode.fromLong(42).asBytes());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  10. build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/UpdateReleasedVersionsTest.groovy

            where:
            version | buildTime
            '4.3'   | 1
            '4.4'   | -1
            '4.4'   | 1
        }
    
        def "older snapshots are not stored"() {
            def referenceBuildTime = System.currentTimeMillis() - DAYS.toMillis(10)
            def oldSnapshot = snapshot('4.3', referenceBuildTime)
            def rc = releasedVersion('4.2-rc-1')
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 14:47:12 GMT 2026
    - 5.4K bytes
    - Click Count (0)
Back to Top