Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for LocalCache (0.42 sec)

  1. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          checkNotNull(key);
          localCache.remove(key);
        }
    
        @Override
        public void invalidateAll() {
          localCache.clear();
        }
    
        @Override
        public long size() {
          return localCache.size();
        }
    
        @Override
        public ConcurrentMap<K, V> asMap() {
          return localCache;
        }
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

    import com.google.common.cache.LocalCache.EntryFactory;
    import com.google.common.cache.LocalCache.LoadingValueReference;
    import com.google.common.cache.LocalCache.LocalLoadingCache;
    import com.google.common.cache.LocalCache.LocalManualCache;
    import com.google.common.cache.LocalCache.Segment;
    import com.google.common.cache.LocalCache.Strength;
    import com.google.common.cache.LocalCache.ValueReference;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 110.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      public void testMaximumSize_largerThanInt() {
        CacheBuilder<Object, Object> builder =
            CacheBuilder.newBuilder().initialCapacity(512).maximumSize(Long.MAX_VALUE);
        LocalCache<?, ?> cache = ((LocalCache.LocalManualCache<?, ?>) builder.build()).localCache;
        assertThat(cache.segments.length * cache.segments[0].table.length()).isEqualTo(512);
      }
    
      @GwtIncompatible // maximumWeight
      public void testMaximumWeight_negative() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      public void testMaximumSize_largerThanInt() {
        CacheBuilder<Object, Object> builder =
            CacheBuilder.newBuilder().initialCapacity(512).maximumSize(Long.MAX_VALUE);
        LocalCache<?, ?> cache = ((LocalCache.LocalManualCache<?, ?>) builder.build()).localCache;
        assertThat(cache.segments.length * cache.segments[0].table.length()).isEqualTo(512);
      }
    
      @GwtIncompatible // maximumWeight
      public void testMaximumWeight_negative() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

     * the License.
     */
    
    package com.google.common.cache;
    
    import static com.google.common.cache.LocalCache.Strength.STRONG;
    import static com.google.common.collect.Maps.immutableEntry;
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.base.Function;
    import com.google.common.cache.LocalCache.Strength;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Iterables;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 20:58:01 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/CacheBuilder.java

    import com.google.common.base.Suppliers;
    import com.google.common.base.Ticker;
    import com.google.common.cache.AbstractCache.SimpleStatsCounter;
    import com.google.common.cache.AbstractCache.StatsCounter;
    import com.google.common.cache.LocalCache.Strength;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.j2objc.annotations.J2ObjCIncompatible;
    import java.lang.ref.SoftReference;
    import java.lang.ref.WeakReference;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        super.setUp();
        logHandler = new TestLogHandler();
        LocalCache.logger.addHandler(logHandler);
      }
    
      @Override
      public void tearDown() throws Exception {
        super.tearDown();
        // TODO(cpovirk): run tests in other thread instead of messing with main thread interrupt status
        Thread.interrupted();
        LocalCache.logger.removeHandler(logHandler);
      }
    
      private Throwable popLoggedThrowable() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 85.7K bytes
    - Viewed (0)
Back to top