Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 270 for cache (0.16 sec)

  1. android/guava/src/com/google/common/cache/Cache.java

      long size();
    
      /**
       * Returns a current snapshot of this cache's cumulative statistics, or a set of default values if
       * the cache is not recording statistics. All statistics begin at zero and never decrease over the
       * lifetime of the cache.
       *
       * <p><b>Warning:</b> this cache may not be recording statistical data. For example, a cache
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/Cache.java

      long size();
    
      /**
       * Returns a current snapshot of this cache's cumulative statistics, or a set of default values if
       * the cache is not recording statistics. All statistics begin at zero and never decrease over the
       * lifetime of the cache.
       *
       * <p><b>Warning:</b> this cache may not be recording statistical data. For example, a cache
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 7.9K bytes
    - Viewed (0)
  3. 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 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K 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/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 26 12:43:10 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. maven-core/src/main/java/org/apache/maven/artifact/repository/RepositoryCache.java

        /**
         * Puts the specified data into the cache. <strong>Warning:</strong> The cache will directly save the provided
         * reference. If the cached data is mutable, i.e. could be modified after being put into the cache, the caller is
         * responsible for creating a copy of the original data and store the copy in the cache.
         *
         * @param request The repository request from which this cache was retrieved, must not be {@code null}.
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/CacheStats.java

    /**
     * Statistics about the performance of a {@link Cache}. Instances of this class are immutable.
     *
     * <p>Cache statistics are incremented according to the following rules:
     *
     * <ul>
     *   <li>When a cache lookup encounters an existing cache entry {@code hitCount} is incremented.
     *   <li>When a cache lookup first encounters a missing cache entry, a new entry is loaded.
     *       <ul>
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
Back to top