Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for LocalLoadingCache (0.24 sec)

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

    import junit.framework.TestCase;
    
    /** @author Charles Fry */
    public class LocalLoadingCacheTest extends TestCase {
    
      private static <K, V> LocalLoadingCache<K, V> makeCache(
          CacheBuilder<K, V> builder, CacheLoader<? super K, V> loader) {
        return new LocalLoadingCache<>(builder, loader);
      }
    
      private CacheBuilder<Object, Object> createCacheBuilder() {
        return CacheBuilder.newBuilder().recordStats();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

    import junit.framework.TestCase;
    
    /** @author Charles Fry */
    public class LocalLoadingCacheTest extends TestCase {
    
      private static <K, V> LocalLoadingCache<K, V> makeCache(
          CacheBuilder<K, V> builder, CacheLoader<? super K, V> loader) {
        return new LocalLoadingCache<>(builder, loader);
      }
    
      private CacheBuilder<Object, Object> createCacheBuilder() {
        return CacheBuilder.newBuilder().recordStats();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          return localCache;
        }
      }
    
      /**
       * LocalLoadingCache is a wrapper around LocalCache for a cache with loading.
       *
       * @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(
    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. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        SerializableWeigher<Object, Object> weigher = new SerializableWeigher<>();
        Ticker ticker = new SerializableTicker();
        @SuppressWarnings("unchecked") // createMock
        LocalLoadingCache<Object, Object> one =
            (LocalLoadingCache)
                CacheBuilder.newBuilder()
                    .weakKeys()
                    .softValues()
                    .expireAfterAccess(123, SECONDS)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        SerializableWeigher<Object, Object> weigher = new SerializableWeigher<>();
        Ticker ticker = new SerializableTicker();
        @SuppressWarnings("unchecked") // createMock
        LocalLoadingCache<Object, Object> one =
            (LocalLoadingCache)
                CacheBuilder.newBuilder()
                    .weakKeys()
                    .softValues()
                    .expireAfterAccess(123, SECONDS)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/CacheBuilder.java

       */
      public <K1 extends K, V1 extends V> LoadingCache<K1, V1> build(
          CacheLoader<? super K1, V1> loader) {
        checkWeightWithWeigher();
        return new LocalCache.LocalLoadingCache<>(this, loader);
      }
    
      /**
       * Builds a cache which does not automatically load values when keys are requested.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 52K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/LocalCache.java

          throw new InvalidObjectException("Use ManualSerializationProxy");
        }
      }
    
      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(new LocalCache<>(builder, checkNotNull(loader)));
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/CacheBuilder.java

       */
      public <K1 extends K, V1 extends V> LoadingCache<K1, V1> build(
          CacheLoader<? super K1, V1> loader) {
        checkWeightWithWeigher();
        return new LocalCache.LocalLoadingCache<>(this, loader);
      }
    
      /**
       * Builds a cache which does not automatically load values when keys are requested.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 51.6K bytes
    - Viewed (0)
Back to top