Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 15 for LocalCache (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

          localCache = new LocalCache<K, V>(builder, loader);
        }
    
        // Cache methods
    
        @Override
        public V get(K key, Callable<? extends V> valueLoader) throws ExecutionException {
          synchronized (localCache.lock) { // Prevent concurrent loads for the same key
            V value = localCache.get(key);
            if (value != null) {
              return value;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 21.6K bytes
    - Click Count (0)
  2. android/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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
  3. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
  4. 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.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Benchmark for {@code LocalCache.Segment.removeEntryFromChain}.
     *
     * @author Charles Fry
     */
    @SuppressWarnings("CheckReturnValue")
    @NullUnmarked
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.1K bytes
    - Click Count (0)
  5. 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);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // maximumWeight
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.7K bytes
    - Click Count (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);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // maximumWeight
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  7. 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.cache.LocalCache.Strength;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Iterables;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  8. guava/src/com/google/common/cache/ReferenceEntry.java

     * the License.
     */
    
    package com.google.common.cache;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.cache.LocalCache.ValueReference;
    import org.jspecify.annotations.Nullable;
    
    /**
     * An entry in a reference map.
     *
     * <p>Entries in the map can be in the following states:
     *
     * <p>Valid:
     *
     * <ul>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 13:13:59 GMT 2026
    - 3.5K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

     */
    
    package com.google.common.cache;
    
    import com.google.common.base.MoreObjects;
    import com.google.common.base.Optional;
    import com.google.common.base.Preconditions;
    import com.google.common.cache.LocalCache.Strength;
    import com.google.common.collect.Iterables;
    import com.google.common.collect.Lists;
    import com.google.common.collect.Sets;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/cache/CacheBuilderSpec.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.VisibleForTesting;
    import com.google.common.base.MoreObjects;
    import com.google.common.base.Splitter;
    import com.google.common.cache.LocalCache.Strength;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableMap;
    import com.google.errorprone.annotations.FormatMethod;
    import java.util.List;
    import java.util.Locale;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 18.2K bytes
    - Click Count (0)
Back to Top