Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 648 for tache (0.15 sec)

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

              }
            };
    
        UncheckedExecutionException expected =
            assertThrows(UncheckedExecutionException.class, () -> cache.getUnchecked(new Object()));
        assertThat(expected).hasCauseThat().isEqualTo(cause);
    
        Object newValue = new Object();
        valueRef.set(newValue);
        assertSame(newValue, cache.getUnchecked(new Object()));
      }
    
      public void testGetUnchecked_unchecked() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

      // 3. successful network response
      // 4. successful stale cached GET response
      // 5. unsuccessful response
      @Test
      fun usesCache() {
        val cache = Cache(cacheFs, "cache".toPath(), (100 * 1024).toLong())
        val cachedClient = bootstrapClient.newBuilder().cache(cache).build()
        val cachedDns = buildLocalhost(cachedClient, false)
    
        repeat(2) {
          server.enqueue(
            dnsResponse(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 11K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginArtifactsCache.java

            assertUniqueKey(key);
    
            CacheRecord record = new CacheRecord(Collections.unmodifiableList(new ArrayList<>(pluginArtifacts)));
    
            cache.put(key, record);
    
            return record;
        }
    
        protected void assertUniqueKey(Key key) {
            if (cache.containsKey(key)) {
                throw new IllegalStateException("Duplicate artifact resolution result for plugin " + key);
            }
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

     */
    
    package com.google.common.cache;
    
    import static com.google.common.cache.TestingCacheLoaders.constantLoader;
    import static com.google.common.cache.TestingCacheLoaders.identityLoader;
    import static com.google.common.cache.TestingRemovalListeners.countingRemovalListener;
    import static com.google.common.cache.TestingRemovalListeners.nullRemovalListener;
    import static com.google.common.cache.TestingRemovalListeners.queuingRemovalListener;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/ForwardingCacheTest.java

    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link ForwardingCache}.
     *
     * @author Charles Fry
     */
    public class ForwardingCacheTest extends TestCase {
      private Cache<String, Boolean> forward;
      private Cache<String, Boolean> mock;
    
      @SuppressWarnings({"unchecked", "DoNotMock"}) // mock
      @Override
      public void setUp() throws Exception {
        super.setUp();
        /*
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  6. .github/workflows/build-docs.yml

            with:
              python-version: "3.11"
          - uses: actions/cache@v4
            id: cache
            with:
              path: ${{ env.pythonLocation }}
              key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-docs.txt', 'requirements-docs-tests.txt') }}-v07
          - name: Install docs extras
            if: steps.cache.outputs.cache-hit != 'true'
            run: pip install -r requirements-docs.txt
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 03:12:00 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/CacheControl.kt

      }
    
      companion object {
        /**
         * Cache control request directives that require network validation of responses. Note that such
         * requests may be assisted by the cache via conditional GET requests.
         */
        @JvmField
        val FORCE_NETWORK = commonForceNetwork()
    
        /**
         * Cache control request directives that uses the cache only, even if the cached response is
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 10K bytes
    - Viewed (0)
  8. cmd/metacache.go

    }
    
    // worthKeeping indicates if the cache by itself is worth keeping.
    func (m *metacache) worthKeeping() bool {
    	if m == nil {
    		return false
    	}
    	cache := m
    	switch {
    	case !cache.finished() && time.Since(cache.lastUpdate) > metacacheMaxRunningAge:
    		// Not finished and update for metacacheMaxRunningAge, discard it.
    		return false
    	case cache.finished() && time.Since(cache.lastHandout) > 5*metacacheMaxClientWait:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/MapRetrievalCache.java

        if (value != null) {
          return value;
        }
    
        // Store a local reference to the cache entry. If the backing map is immutable, this,
        // in combination with immutable cache entries, will ensure a thread-safe cache.
        CacheEntry<K, V> entry;
    
        // Check cache. We use == on purpose because it's cheaper and a cache miss is ok.
        entry = cacheEntry1;
        if (entry != null && entry.key == key) {
          return entry.value;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 3.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

     * the cache; the cache may delete or overwrite files from its directory. It is an error for
     * multiple processes to use the same cache directory at the same time.
     *
     * This cache limits the number of bytes that it will store on the filesystem. When the number of
     * stored bytes exceeds the limit, the cache will remove entries in the background until the limit
     * is satisfied. The limit is not strict: the cache may temporarily exceed it while waiting for
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
Back to top