Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for cacheFactory (0.07 seconds)

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

        // lots of different ways to configure a LoadingCache
        CacheBuilderFactory factory = cacheFactory();
        return Iterables.transform(
            factory.buildAllPermutations(), builder -> builder.build(identityLoader()));
      }
    
      private CacheBuilderFactory cacheFactory() {
        return new CacheBuilderFactory()
            .withKeyStrengths(ImmutableSet.of(Strength.STRONG, Strength.WEAK))
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

        // lots of different ways to configure a LoadingCache
        CacheBuilderFactory factory = cacheFactory();
        return Iterables.transform(
            factory.buildAllPermutations(), builder -> builder.recordStats().build(identityLoader()));
      }
    
      private CacheBuilderFactory cacheFactory() {
        // This is trickier than expected. We plan to put 15 values in each of these (WARMUP_MIN to
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15.4K bytes
    - Click Count (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/cache/package-info.java

     *   <li>REQUEST_SCOPED - Data retained only for the current build request</li>
     *   <li>DISABLED - No caching performed</li>
     * </ul>
     * <p>
     * Example usage:
     * <pre>
     * RequestCache cache = cacheFactory.createCache();
     * Result result = cache.request(myRequest, req -> {
     *     // Expensive operation to compute result
     *     return computedResult;
     * });
     * </pre>
     * <p>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Feb 07 00:45:02 GMT 2025
    - 2.3K bytes
    - Click Count (0)
Back to Top