Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for revalidate (0.14 sec)

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

        assertEquals(
            ImmutableMap.of("key", Boolean.TRUE), forward.getAllPresent(ImmutableList.of("key")));
      }
    
      public void testInvalidate() {
        forward.invalidate("key");
        verify(mock).invalidate("key");
      }
    
      public void testInvalidateAllIterable() {
        forward.invalidateAll(ImmutableList.of("key"));
        verify(mock).invalidateAll(ImmutableList.of("key"));
      }
    
    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)
  2. android/guava/src/com/google/common/cache/RemovalCause.java

     * @since 10.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public enum RemovalCause {
      /**
       * The entry was manually removed by the user. This can result from the user invoking {@link
       * Cache#invalidate}, {@link Cache#invalidateAll(Iterable)}, {@link Cache#invalidateAll()}, {@link
       * Map#remove}, {@link ConcurrentMap#remove}, or {@link Iterator#remove}.
       */
      EXPLICIT {
        @Override
        boolean wasEvicted() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 2.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/eventbus/ReentrantEventsTest.java

     * limitations under the License.
     */
    
    package com.google.common.eventbus;
    
    import com.google.common.collect.Lists;
    import java.util.List;
    import junit.framework.TestCase;
    
    /**
     * Validate that {@link EventBus} behaves carefully when listeners publish their own events.
     *
     * @author Jesse Wilson
     */
    public class ReentrantEventsTest extends TestCase {
    
      static final String FIRST = "one";
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

            new Receiver<ReferenceEntry<Integer, Integer>>() {
              @Override
              public void accept(ReferenceEntry<Integer, Integer> entry) {
                Integer key = entry.getKey();
                cache.invalidate(key);
              }
            });
      }
    
      public void testEviction_lru() {
        // test lru within a single segment
        IdentityLoader<Integer> loader = identityLoader();
    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-tests/test/com/google/common/cache/CacheReferencesTest.java

          Key key2 = new Key(2);
          String value2 = key2.toString();
          assertSame(value1, cache.getUnchecked(key1));
          assertSame(value2, cache.getUnchecked(key2));
          cache.invalidate(key1);
          assertFalse(cache.asMap().containsKey(key1));
          assertTrue(cache.asMap().containsKey(key2));
          assertEquals(1, cache.size());
          assertEquals(ImmutableSet.of(key2), cache.asMap().keySet());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

          public void run() {
            cache.refresh(refreshKey);
            getFinishedSignal.countDown();
          }
        }.start();
    
        computationStarted.await();
        cache.invalidate(getKey);
        cache.invalidate(refreshKey);
        assertFalse(map.containsKey(getKey));
        assertFalse(map.containsKey(refreshKey));
    
        // let computation complete
        letGetFinishSignal.countDown();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/Cache.java

       *
       * @since 12.0
       */
      void putAll(Map<? extends K, ? extends V> m);
    
      /** Discards any cached value for key {@code key}. */
      void invalidate(@CompatibleWith("K") Object key);
    
      /**
       * Discards any cached values for keys {@code keys}.
       *
       * @since 11.0
       */
      // For discussion of <? extends Object>, see getAllPresent.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 7.9K bytes
    - Viewed (1)
  8. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        int shift2 = shift1 + 10;
        loader.setValuePrefix(shift2);
        // fill with new data - has to live for 20 ms more
        for (int i = 0; i < 10; i++) {
          cache.invalidate(keyPrefix + i);
          assertEquals(
              "key: " + keyPrefix + i, Integer.valueOf(i + shift2), cache.getUnchecked(keyPrefix + i));
        }
        assertEquals(10, CacheTesting.expirationQueueSize(cache));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 18.7K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          return localCache.getIfPresent(key);
        }
    
        @Override
        public void put(K key, V value) {
          localCache.put(key, value);
        }
    
        @Override
        public void invalidate(Object key) {
          checkNotNull(key);
          localCache.remove(key);
        }
    
        @Override
        public void invalidateAll() {
          localCache.clear();
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/HashBiMap.java

         * the key entry's prev or next pointer might point to the dead value entry, and when we
         * put the new entry in the key entry's position in iteration order, it might invalidate
         * the linked list.
         */
    
        if (oldEntryForValue != null) {
          delete(oldEntryForValue);
        }
    
        if (oldEntryForKey != null) {
          delete(oldEntryForKey);
        }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 24.5K bytes
    - Viewed (0)
Back to top