Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 738 for cache (0.23 sec)

  1. 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)
  2. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            assertTrue(cache.asMap().remove(key, value));
            assertFalse(cache.asMap().remove(key, -1));
            assertFalse(cache.asMap().containsKey(key));
          }
          checkEmpty(cache);
        }
      }
    
    
      public void testKeySet_populated() {
        for (LoadingCache<Object, Object> cache : caches()) {
          Set<Object> keys = cache.asMap().keySet();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K 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));
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheEvictionTest.java

        assertEquals(MAX_SIZE, cache.size());
        CacheTesting.processPendingNotifications(cache);
        assertEquals(MAX_SIZE, removalListener.getCount());
        CacheTesting.checkValidState(cache);
      }
    
      /**
       * With an unlimited-size cache with maxWeight of 0, entries weighing 0 should still be cached.
       * Entries with positive weight should not be cached (nor dump existing cache).
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            assertTrue(cache.asMap().remove(key, value));
            assertFalse(cache.asMap().remove(key, -1));
            assertFalse(cache.asMap().containsKey(key));
          }
          checkEmpty(cache);
        }
      }
    
    
      public void testKeySet_populated() {
        for (LoadingCache<Object, Object> cache : caches()) {
          Set<Object> keys = cache.asMap().keySet();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/EmptyCachesTest.java

          cache.invalidate("a");
          cache.invalidate("b");
          cache.invalidate(0);
          checkEmpty(cache);
        }
      }
    
      public void testInvalidateAll_empty() {
        for (LoadingCache<Object, Object> cache : caches()) {
          cache.getUnchecked("a");
          cache.getUnchecked("b");
          cache.getUnchecked("c");
          cache.invalidateAll();
          checkEmpty(cache);
        }
      }
    
    
      public void testEquals_null() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.5K 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 10K bytes
    - Viewed (0)
  8. cmd/metacache-bucket.go

    			remove[id] = struct{}{}
    			continue
    		}
    		if cache.id != id {
    			logger.Info("cache ID mismatch %s != %s", id, cache.id)
    			remove[id] = struct{}{}
    			continue
    		}
    		if cache.bucket != b.bucket {
    			logger.Info("cache bucket mismatch %s != %s", b.bucket, cache.bucket)
    			remove[id] = struct{}{}
    			continue
    		}
    	}
    
    	// If above limit, remove the caches with the oldest handout time.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  9. 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));
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/NullCacheTest.java

     * the License.
     */
    
    package com.google.common.cache;
    
    import static com.google.common.cache.CacheTesting.checkEmpty;
    import static com.google.common.cache.TestingCacheLoaders.constantLoader;
    import static com.google.common.cache.TestingCacheLoaders.exceptionLoader;
    import static com.google.common.cache.TestingRemovalListeners.queuingRemovalListener;
    import static com.google.common.truth.Truth.assertThat;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.4K bytes
    - Viewed (0)
Back to top