- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 579 for cache (0.05 sec)
-
android/guava/src/com/google/common/cache/RemovalCause.java
public enum RemovalCause { /** * The entry was manually removed by the user. This can result from the user invoking {@link * Cache#invalidate}, {@link Cache#invalidateAll(Iterable)}, {@link Cache#invalidateAll()}, {@link * Map#remove}, {@link ConcurrentMap#remove}, or {@link Iterator#remove}. */ EXPLICIT { @Override boolean wasEvicted() { return false; } }, /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 18:00:07 UTC 2021 - 2.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java
} }; UncheckedExecutionException expected = assertThrows(UncheckedExecutionException.class, () -> cache.getUnchecked(new Object())); assertThat(expected).hasCauseThat().isEqualTo(cause); Object newValue = new Object(); valueRef.set(newValue); assertSame(newValue, cache.getUnchecked(new Object())); } public void testGetUnchecked_unchecked() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersJvmTest.kt
val headers = Headers.headersOf( "cache-control", "no-store", "Cache-Control", "no-cache", ) val headerMap = headers.toMultimap() assertThat(headerMap["cache-control"]!!.size).isEqualTo(2) assertThat(headerMap["Cache-Control"]!!.size).isEqualTo(2) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.6K bytes - Viewed (0) -
CONTRIBUTING.md
If you are not getting cache hits from the build cache, you may be using the wrong version of Java. A fixed version (Java 11) is required to get remote cache hits. ### Building a distribution from source
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Nov 05 15:15:33 UTC 2024 - 15.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt
import okhttp3.internal.toNonNegativeInt /** * Given a request and cached response, this figures out whether to use the network, the cache, or * both. * * Selecting a cache strategy may add conditions to the request (like the "If-Modified-Since" header * for conditional GETs) or warnings to the cached response (if the cached data is potentially * stale). */ class CacheStrategy internal constructor(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:24:48 UTC 2024 - 12K bytes - Viewed (0) -
docs/recipes.md
it with their cache, and use that same instance everywhere. Otherwise the two cache instances will stomp on each other, corrupt the response cache, and possibly crash your program. Response caching uses HTTP headers for all configuration. You can add request headers like `Cache-Control: max-stale=3600` and OkHttp's cache will honor them. Your webserver configures how long responses are cached with its own response headers, like `Cache-Control: max-age=9600`. There are cache headers to force...
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Feb 18 08:52:22 UTC 2022 - 40.2K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelCache.java
return new DefaultModelCache(cache); } private final ConcurrentMap<Object, Supplier<?>> cache; private DefaultModelCache(ConcurrentMap<Object, Supplier<?>> cache) { this.cache = requireNonNull(cache); } @Override @SuppressWarnings({"unchecked"}) public <T> T computeIfAbsent(String groupId, String artifactId, String version, String tag, Supplier<T> data) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/mylasta/direction/FessConfigImpl.java
import org.codelibs.fess.Constants; import org.dbflute.helper.jprop.ObjectiveProperties; import org.lastaflute.core.direction.PropertyFilter; import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; public class FessConfigImpl extends FessConfig.SimpleImpl { private static final long serialVersionUID = 1L; @Override
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2.2K bytes - Viewed (0) -
samples/crawler/src/main/java/okhttp3/sample/Crawler.java
if (args.length != 2) { System.out.println("Usage: Crawler <cache dir> <root>"); return; } int threadCount = 20; long cacheByteCount = 1024L * 1024L * 100L; Cache cache = new Cache(new File(args[0]), cacheByteCount); OkHttpClient client = new OkHttpClient.Builder() .cache(cache) .build(); Crawler crawler = new Crawler(client);
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Aug 12 07:26:27 UTC 2021 - 4.6K bytes - Viewed (0) -
docs/changelogs/changelog_2x.md
server! * **Cache improvements.** This release fixes some severe cache problems including a bug where the cache could be corrupted upon certain access patterns. We also fixed a bug where the cache was being cleared due to a corrupted journal. We've added APIs to configure a request's `Cache-Control` headers, and to manually clear the cache.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 26.6K bytes - Viewed (0)