Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for LocalCache (0.07 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/LocalCache.java

      static class LocalManualCache<K, V> implements Cache<K, V>, Serializable {
        final LocalCache<K, V> localCache;
    
        LocalManualCache(CacheBuilder<? super K, ? super V> builder) {
          this(new LocalCache<>(builder, null));
        }
    
        private LocalManualCache(LocalCache<K, V> localCache) {
          this.localCache = localCache;
        }
    
        // Cache methods
    
        @Override
        @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java

    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.common.cache.LocalCache.Segment;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Benchmark for {@code LocalCache.Segment.removeEntryFromChain}.
     *
     * @author Charles Fry
     */
    @SuppressWarnings("CheckReturnValue")
    public class ChainBenchmark {
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:19:38 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. 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 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-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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  6. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java

    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.common.cache.LocalCache.Segment;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Benchmark for {@code LocalCache.Segment.removeEntryFromChain}.
     *
     * @author Charles Fry
     */
    @SuppressWarnings("CheckReturnValue")
    public class ChainBenchmark {
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:19:38 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.cache.LocalCache.LocalLoadingCache;
    import com.google.common.cache.LocalCache.Segment;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.testing.NullPointerTester;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.cache.LocalCache.LocalLoadingCache;
    import com.google.common.cache.LocalCache.Segment;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.testing.NullPointerTester;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/CacheReferencesTest.java

     */
    
    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 static java.lang.Math.max;
    
    import com.google.common.base.Function;
    import com.google.common.cache.LocalCache.Strength;
    import com.google.common.cache.TestingRemovalListeners.CountingRemovalListener;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top