Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 395 for invalidate (0.2 sec)

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

      }
    
      public void testApply() {
        when(mock.apply("key")).thenReturn(Boolean.TRUE);
        assertSame(Boolean.TRUE, forward.apply("key"));
      }
    
      public void testInvalidate() {
        forward.invalidate("key");
        verify(mock).invalidate("key");
      }
    
      public void testRefresh() throws ExecutionException {
        forward.refresh("key");
        verify(mock).refresh("key");
      }
    
      public void testInvalidateAll() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSession.kt

      override fun getCreationTime(): Long {
        return delegate!!.creationTime
      }
    
      override fun getLastAccessedTime(): Long {
        return delegate!!.lastAccessedTime
      }
    
      override fun invalidate() {
        delegate!!.invalidate()
      }
    
      override fun isValid(): Boolean {
        return delegate!!.isValid
      }
    
      override fun putValue(
        s: String,
        o: Any,
      ) {
        delegate!!.putValue(s, o)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  3. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

      }
    
    
      public void testInvalidate_empty() {
        for (LoadingCache<Object, Object> cache : caches()) {
          cache.getUnchecked("a");
          cache.getUnchecked("b");
          cache.invalidate("a");
          cache.invalidate("b");
          cache.invalidate(0);
          checkEmpty(cache);
        }
      }
    
      public void testInvalidateAll_empty() {
        for (LoadingCache<Object, Object> cache : caches()) {
          cache.getUnchecked("a");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  5. 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)
  6. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        cache.put(0, 10);
    
        assertEquals(Integer.valueOf(10), cache.get(0, loader));
        assertEquals(Integer.valueOf(1), cache.get(20, loader));
        assertEquals(Integer.valueOf(2), cache.get(34, loader));
    
        cache.invalidate(0);
        assertEquals(Integer.valueOf(3), cache.get(0, loader));
    
        cache.put(0, 10);
        cache.invalidateAll();
        assertEquals(Integer.valueOf(4), cache.get(0, loader));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 15.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/AbstractCacheTest.java

        cache.invalidateAll(toInvalidate);
        assertEquals(toInvalidate, invalidated);
      }
    
      public void testEmptySimpleStats() {
        StatsCounter counter = new SimpleStatsCounter();
        CacheStats stats = counter.snapshot();
        assertEquals(0, stats.requestCount());
        assertEquals(0, stats.hitCount());
        assertEquals(1.0, stats.hitRate());
        assertEquals(0, stats.missCount());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java

                try {
                    final StatsObject data = statsCache.getIfPresent(key);
                    if (data != null && data.decrement() <= 0) {
                        statsCache.invalidate(key);
                        final Long begin = data.remove(BEGIN_KEY);
                        if (begin != null) {
                            printStats(keyObj, data, begin, true);
                        }
                    }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/FakeSSLSession.kt

      override fun getValue(s: String): Any {
        throw UnsupportedOperationException()
      }
    
      override fun getValueNames(): Array<String> {
        throw UnsupportedOperationException()
      }
    
      override fun invalidate() {
        throw UnsupportedOperationException()
      }
    
      override fun isValid(): Boolean {
        throw UnsupportedOperationException()
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/AbstractLoadingCache.java

     * {@code get}; {@link #getAllPresent} is implemented in terms of {@code getIfPresent}; {@link
     * #putAll} is implemented in terms of {@link #put}, {@link #invalidateAll(Iterable)} is implemented
     * in terms of {@link #invalidate}. The method {@link #cleanUp} is a no-op. All other methods throw
     * an {@link UnsupportedOperationException}.
     *
     * @author Charles Fry
     * @since 11.0
     */
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 2.7K bytes
    - Viewed (0)
Back to top