Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 740 for cache (0.14 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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

     * the cache; the cache may delete or overwrite files from its directory. It is an error for
     * multiple processes to use the same cache directory at the same time.
     *
     * This cache limits the number of bytes that it will store on the filesystem. When the number of
     * stored bytes exceeds the limit, the cache will remove entries in the background until the limit
     * is satisfied. The limit is not strict: the cache may temporarily exceed it while waiting for
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/CacheManualTest.java

        assertFalse(cache.asMap().containsKey(two));
        assertFalse(cache.asMap().containsValue(one));
    
        cache.put(one, two);
    
        assertSame(two, cache.getIfPresent(one));
        stats = cache.stats();
        assertEquals(2, stats.missCount());
        assertEquals(0, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(1, stats.hitCount());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheManualTest.java

        assertFalse(cache.asMap().containsKey(two));
        assertFalse(cache.asMap().containsValue(one));
    
        cache.put(one, two);
    
        assertSame(two, cache.getIfPresent(one));
        stats = cache.stats();
        assertEquals(2, stats.missCount());
        assertEquals(0, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(1, stats.hitCount());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java

              }
            };
    
        UncheckedExecutionException expected =
            assertThrows(UncheckedExecutionException.class, () -> cache.getUnchecked(new Object()));
        assertThat(expected).hasCauseThat().isEqualTo(cause);
    
        Object newValue = new Object();
        valueRef.set(newValue);
        assertSame(newValue, cache.getUnchecked(new Object()));
      }
    
      public void testGetUnchecked_unchecked() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5K bytes
    - Viewed (0)
  6. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/TestDohMain.kt

            client = bootstrapClient,
            http2Only = false,
            workingOnly = false,
            getOnly = false,
          )
        runBatch(dnsProviders, names)
        val dnsCache =
          Cache(
            directory = File("./target/TestDohMain.cache.${System.currentTimeMillis()}"),
            maxSize = 10L * 1024 * 1024,
          )
        println("Bad targets\n***********\n")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/BufferCacheImpl.java

            Arrays.fill(buf, (byte) 0);
            synchronized ( this.cache ) {
                if ( this.freeBuffers < this.cache.length ) {
                    for ( int i = 0; i < this.cache.length; i++ ) {
                        if ( this.cache[ i ] == null ) {
                            this.cache[ i ] = buf;
                            this.freeBuffers++;
                            return;
                        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jan 24 11:40:34 GMT 2021
    - 2.9K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginRealmCache.java

            if (cache.containsKey(key)) {
                throw new IllegalStateException("Duplicate plugin realm for plugin " + key);
            }
    
            CacheRecord record = new CacheRecord(pluginRealm, pluginArtifacts);
    
            cache.put(key, record);
    
            return record;
        }
    
        public void flush() {
            for (CacheRecord record : cache.values()) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 7.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/CacheTesting.java

        return Math.max(accessQueueSize(cache), writeQueueSize(cache));
      }
    
      static void processPendingNotifications(Cache<?, ?> cache) {
        if (hasLocalCache(cache)) {
          LocalCache<?, ?> cchm = toLocalCache(cache);
          cchm.processPendingNotifications();
        }
      }
    
      interface Receiver<T> {
        void accept(@Nullable T object);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/CacheLoader.java

       * @param function the function to be used for loading values; must never return {@code null}
       * @return a cache loader that loads values by passing each key to {@code function}
       */
      public static <K, V> CacheLoader<K, V> from(Function<K, V> function) {
        return new FunctionToCacheLoader<>(function);
      }
    
      /**
       * Returns a cache loader based on an <i>existing</i> supplier instance. Note that there's no need
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 19 20:20:14 GMT 2022
    - 9.6K bytes
    - Viewed (0)
Back to top