Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 376 for cache (0.17 sec)

  1. 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.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt

        cache = buildCache("/cache/".toPath(), Int.MAX_VALUE.toLong(), loggingFileSystem)
        client =
          clientTestRule.newClientBuilder()
            .cache(cache)
            .cookieJar(JavaNetCookieJar(cookieManager))
            .build()
      }
    
      @AfterEach
      fun tearDown() {
        ResponseCache.setDefault(null)
        if (this::cache.isInitialized) {
          cache.delete()
        }
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 6K bytes
    - Viewed (1)
  3. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

      }
    
      public void testGetAllPresent_empty() {
        Cache<Object, Object> cache =
            new AbstractCache<Object, Object>() {
              @Override
              public @Nullable Object getIfPresent(Object key) {
                return null;
              }
            };
    
        assertEquals(ImmutableMap.of(), cache.getAllPresent(ImmutableList.of(new Object())));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/AbstractCacheTest.java

      }
    
      public void testGetAllPresent_empty() {
        Cache<Object, Object> cache =
            new AbstractCache<Object, Object>() {
              @Override
              public @Nullable Object getIfPresent(Object key) {
                return null;
              }
            };
    
        assertEquals(ImmutableMap.of(), cache.getAllPresent(ImmutableList.of(new Object())));
      }
    
    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)
  6. android/guava/src/com/google/common/graph/MapRetrievalCache.java

        if (value != null) {
          return value;
        }
    
        // Store a local reference to the cache entry. If the backing map is immutable, this,
        // in combination with immutable cache entries, will ensure a thread-safe cache.
        CacheEntry<K, V> entry;
    
        // Check cache. We use == on purpose because it's cheaper and a cache miss is ok.
        entry = cacheEntry1;
        if (entry != null && entry.key == key) {
          return entry.value;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 3.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/AbstractCache.java

      }
    
      /**
       * Accumulates statistics during the operation of a {@link Cache} for presentation by {@link
       * Cache#stats}. This is solely intended for consumption by {@code Cache} implementors.
       *
       * @since 10.0
       */
      public interface StatsCounter {
        /**
         * Records cache hits. This should be called when a cache request returns a cached value.
         *
         * @param count the number of hits to record
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 9.1K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/project/DefaultProjectRealmCache.java

                ClassRealm realm = record.getRealm();
                try {
                    realm.getWorld().disposeRealm(realm.getId());
                } catch (NoSuchRealmException e) {
                    // ignore
                }
            }
            cache.clear();
        }
    
        public void register(MavenProject project, Key key, CacheRecord record) {
            // default cache does not track record usage
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/AbstractCache.java

      }
    
      /**
       * Accumulates statistics during the operation of a {@link Cache} for presentation by {@link
       * Cache#stats}. This is solely intended for consumption by {@code Cache} implementors.
       *
       * @since 10.0
       */
      public interface StatsCounter {
        /**
         * Records cache hits. This should be called when a cache request returns a cached value.
         *
         * @param count the number of hits to record
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 9.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/CacheRefreshTest.java

        assertEquals(Integer.valueOf(2), cache.getUnchecked(2));
        assertEquals(expectedLoads, loader.getLoadCount());
        assertEquals(expectedReloads, loader.getReloadCount());
    
        // write to 1 to delay its refresh
        cache.asMap().put(1, -1);
        ticker.advance(1, MILLISECONDS);
        assertEquals(Integer.valueOf(1), cache.getUnchecked(0));
        assertEquals(Integer.valueOf(-1), cache.getUnchecked(1));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
Back to top