Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 44 of 44 for LoadingCache (0.07 sec)

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

              int i = 0;
    
              @Override
              public Integer load(Integer key) throws Exception {
                return i++;
              }
            };
    
        LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder().build(loader);
    
        cache.put(10, 20);
    
        Map<Integer, Integer> map = cache.getAll(ImmutableList.of(10, 20, 30, 54, 443, 1));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

        // disables caching.  It's irrelevant how it does so.
        CacheBuilder<Object, Object> builder = CacheBuilder.from(CacheBuilderSpec.disableCaching());
        Object key = new Object();
        Object value = new Object();
        LoadingCache<Object, Object> cache =
            builder.build(CacheLoader.from(Suppliers.ofInstance(value)));
        assertSame(value, cache.getUnchecked(key));
        assertEquals(0, cache.size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

       *
       * @param <K> the base key type
       * @param <V> the base value type
       */
      public static class LocalLoadingCache<K, V> extends LocalManualCache<K, V>
          implements LoadingCache<K, V> {
    
        LocalLoadingCache(
            CacheBuilder<? super K, ? super V> builder, CacheLoader<? super K, V> loader) {
          super(builder, checkNotNull(loader));
        }
    
        // Cache methods
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/LocalCache.java

       */
      static final class LoadingSerializationProxy<K, V> extends ManualSerializationProxy<K, V>
          implements LoadingCache<K, V>, Serializable {
        private static final long serialVersionUID = 1;
    
        @CheckForNull transient LoadingCache<K, V> autoDelegate;
    
        LoadingSerializationProxy(LocalCache<K, V> cache) {
          super(cache);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
Back to top