Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for LocalLoadingCache (0.15 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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