Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 707 for Marche (0.2 sec)

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

        LocalLoadingCache<Object, Object> cache = makeCache(builder, identityLoader());
        assertEquals(0, cache.stats().hitCount());
        assertEquals(0, cache.stats().missCount());
    
        Object one = new Object();
        cache.getUnchecked(one);
        assertEquals(0, cache.stats().hitCount());
        assertEquals(1, cache.stats().missCount());
    
        cache.getUnchecked(one);
        assertEquals(1, cache.stats().hitCount());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/RewriteResponseCacheControl.java

        return originalResponse.newBuilder()
            .header("Cache-Control", "max-age=60")
            .build();
      };
    
      private final OkHttpClient client;
    
      public RewriteResponseCacheControl(File cacheDirectory) throws Exception {
        Cache cache = new Cache(cacheDirectory, 1024 * 1024);
        cache.evictAll();
    
        client = new OkHttpClient.Builder()
            .cache(cache)
            .build();
      }
    
    Java
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Sat Jan 12 03:31:36 GMT 2019
    - 2.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

      }
    
      public void testComputeIfPresent() {
        cache.put(key, "1");
        // simultaneous update for same key, expect count successful updates
        doParallelCacheOp(
            count,
            n -> {
              cache.asMap().computeIfPresent(key, (k, v) -> v + delimiter + n);
            });
        assertEquals(1, cache.size());
        assertThat(cache.getIfPresent(key).split(delimiter)).hasLength(count + 1);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

     * the License.
     */
    
    package com.google.common.cache;
    
    import static com.google.common.cache.TestingCacheLoaders.identityLoader;
    import static com.google.common.cache.TestingRemovalListeners.countingRemovalListener;
    import static com.google.common.cache.TestingWeighers.constantWeigher;
    import static com.google.common.cache.TestingWeighers.intKeyWeigher;
    import static com.google.common.cache.TestingWeighers.intValueWeigher;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/CacheBuilder.java

     * by the garbage collector. Entries with reclaimed keys or values may be removed from the cache on
     * each cache modification, on occasional cache accesses, or on calls to {@link Cache#cleanUp}; such
     * entries may be counted in {@link Cache#size}, but will never be visible to read or write
     * operations.
     *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

     * the License.
     */
    
    package com.google.common.cache;
    
    import static com.google.common.cache.TestingCacheLoaders.bulkLoader;
    import static com.google.common.cache.TestingCacheLoaders.constantLoader;
    import static com.google.common.cache.TestingCacheLoaders.errorLoader;
    import static com.google.common.cache.TestingCacheLoaders.exceptionLoader;
    import static com.google.common.cache.TestingCacheLoaders.identityLoader;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/LoadingCache.java

       * Cache.asMap().putIfAbsent} after loading has completed; if another value was associated with
       * {@code key} while the new value was loading then a removal notification will be sent for the
       * new value.
       *
       * <p>If the cache loader associated with this cache is known not to throw checked exceptions,
       * then prefer {@link #getUnchecked} over this method.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  8. docs/de/docs/help-fastapi.md

        * Bekommen Sie mit, wenn ich Ankündigungen mache oder neue Tools veröffentliche.
        * Sie können auch <a href="https://twitter.com/fastapi" class="external-link" target="_blank">@fastapi auf Twitter folgen</a> (ein separates Konto).
    * <a href="https://www.linkedin.com/in/tiangolo/" class="external-link" target="_blank">Folgen Sie mir auf **LinkedIn**</a>.
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 20:29:57 GMT 2024
    - 16K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        getAll(cache, asList(6, 8));
        CacheTesting.drainRecencyQueues(cache);
        ticker.advance(1, MILLISECONDS);
        assertThat(keySet).containsExactly(1, 3, 6, 8);
    
        // get fails to save 1, put saves 3
        cache.asMap().put(3, -3);
        getAll(cache, asList(1));
        CacheTesting.drainRecencyQueues(cache);
        ticker.advance(1, MILLISECONDS);
        assertThat(keySet).containsExactly(6, 8, 3);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 18.7K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        taskFaker.runNextTask()
    
        // The rebuild is retried on cache hits and on cache edits.
        val snapshot = cache["b"]!!
        snapshot.close()
        assertThat(cache.edit("d")).isNull()
        assertThat(taskFaker.isIdle()).isFalse()
    
        // On cache misses, no retry job is queued.
        assertThat(cache["c"]).isNull()
        assertThat(taskFaker.isIdle()).isFalse()
    
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
Back to top