Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 473 for Marche (0.03 sec)

  1. android/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;
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-05-13 18:46
    - 15K bytes
    - Viewed (0)
  2. 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);
    
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-05-13 18:46
    - 18.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

        for (LoadingCache<Key, String> cache : caches()) {
          Key key = new Key(1);
          String value = key.toString();
          assertSame(value, cache.getUnchecked(key));
          assertFalse(cache.asMap().isEmpty());
          cache.invalidateAll();
          assertEquals(0, cache.size());
          assertTrue(cache.asMap().isEmpty());
          assertFalse(cache.asMap().containsKey(key));
          assertFalse(cache.asMap().containsValue(value));
        }
      }
    Registered: 2025-05-30 12:43
    - Last Modified: 2024-12-19 18:03
    - 6.2K bytes
    - Viewed (0)
  4. docs/features/caching.md

     - ConnectionReleased
     - CallEnd
     
    ## Cache directory
    
    The cache directory must be exclusively owned by a single instance.
    
    Deleting the cache when it is no longer needed can be done.  However this may delete the purpose of the cache
    which is designed to persist between app restarts.
    
    ```kotlin
    cache.delete()
    ```
     
    ## Pruning the Cache
    
    Pruning the entire Cache to clear space temporarily can be done using evictAll.
    
    Registered: 2025-05-30 11:42
    - Last Modified: 2022-02-06 02:19
    - 3.1K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt

        val headers =
          Headers.headersOf(
            "cache-control",
            "no-store",
            "Cache-Control",
            "no-cache",
          )
        val headerMap = headers.toMultimap()
        assertThat(headerMap["cache-control"]!!.size).isEqualTo(2)
        assertThat(headerMap["Cache-Control"]!!.size).isEqualTo(2)
      }
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-05-27 14:51
    - 5.7K bytes
    - Viewed (0)
  6. cmd/storage-rest-common_gen.go

    		case "c":
    			if dc.IsNil() {
    				err = dc.ReadNil()
    				if err != nil {
    					err = msgp.WrapError(err, "Cache")
    					return
    				}
    				z.Cache = nil
    			} else {
    				if z.Cache == nil {
    					z.Cache = new(dataUsageCache)
    				}
    				err = z.Cache.DecodeMsg(dc)
    				if err != nil {
    					err = msgp.WrapError(err, "Cache")
    					return
    				}
    			}
    		default:
    			err = dc.Skip()
    			if err != nil {
    Registered: 2025-05-25 19:28
    - Last Modified: 2023-11-21 01:09
    - 7.9K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/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()
    
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-03-19 19:25
    - 75.7K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/ztunnelserver_linux_test.go

    	defer cancel()
    	conn := FakeZtunnelConnection()
    
    	cache := &fakePodCache{}
    	cacheCloser := fillCacheWithFakePods(cache, 2)
    	defer cacheCloser()
    
    	ch := make(chan UpdateRequest)
    	myUUID := uuid.New()
    
    	helloResp := &zdsapi.ZdsHello{}
    
    	var wg sync.WaitGroup
    	wg.Add(1)
    	respData := &zdsapi.WorkloadResponse{}
    
    	for uid, info := range cache.pods {
    		add := &zdsapi.AddWorkload{
    			WorkloadInfo: info.Workload,
    Registered: 2025-05-28 22:53
    - Last Modified: 2025-03-03 21:55
    - 21.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

     */
    
    package com.google.common.cache;
    
    import static com.google.common.cache.ReflectionFreeAssertThrows.assertThrows;
    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;
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-05-13 18:46
    - 25.1K bytes
    - Viewed (0)
  10. 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();
      }
    
    Registered: 2025-05-30 11:42
    - Last Modified: 2019-01-12 03:31
    - 2.6K bytes
    - Viewed (0)
Back to top