- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 468 for cacher (0.05 sec)
-
samples/guide/src/main/java/okhttp3/recipes/kt/CacheResponse.kt
*/ package okhttp3.recipes.kt import java.io.File import java.io.IOException import okhttp3.Cache import okhttp3.OkHttpClient import okhttp3.Request class CacheResponse( cacheDirectory: File, ) { private val client: OkHttpClient = OkHttpClient .Builder() .cache( Cache( directory = cacheDirectory, // 1 MiB. maxSize = 10L * 1024L * 1024L,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2K bytes - Viewed (0) -
guava/src/com/google/common/cache/Weigher.java
* the License. */ package com.google.common.cache; import com.google.common.annotations.GwtCompatible; /** * Calculates the weights of cache entries. * * @author Charles Fry * @since 11.0 */ @GwtCompatible @FunctionalInterface public interface Weigher<K, V> { /** * Returns the weight of a cache entry. There is no unit for entry weights; rather they are simply * relative to each other. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 1.1K bytes - Viewed (0) -
docs/pt/docs/deployment/docker.md
```Dockerfile RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt ``` O arquivo com os requisitos de pacote **não muda com frequência**. Então, ao copiar apenas esse arquivo, o Docker será capaz de **usar o cache** para esse passo.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Nov 09 16:39:20 UTC 2024 - 37.4K bytes - Viewed (0) -
okhttp-dnsoverhttps/README.md
### Download ```kotlin testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:5.1.0") ``` ### Usage ``` val appCache = Cache(File("cacheDir", "okhttpcache"), 10 * 1024 * 1024) val bootstrapClient = OkHttpClient.Builder().cache(appCache).build() val dns = DnsOverHttps.Builder().client(bootstrapClient) .url("https://dns.google/dns-query".toHttpUrl())
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 07 19:32:33 UTC 2025 - 739 bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/NativeImageTestsAccessors.kt
*/ package okhttp3.internal import okhttp3.Cache import okhttp3.Dispatcher import okhttp3.Response import okhttp3.internal.connection.Exchange import okhttp3.internal.connection.RealCall import okhttp3.internal.connection.RealConnection import okio.FileSystem import okio.Path internal fun buildCache( file: Path, maxSize: Long, fileSystem: FileSystem, ): Cache = Cache(fileSystem, file, maxSize)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt
val certificatePinner: CertificatePinner? = address.certificatePinner() } @Test @Disabled fun cache() { val cache = Cache(File("/cache/"), Integer.MAX_VALUE.toLong()) val directory: File = cache.directory() } @Test @Disabled fun cacheControl() { val cacheControl: CacheControl = CacheControl.Builder().build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 13.3K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/cache/RequestCacheFactory.java
* specific language governing permissions and limitations * under the License. */ package org.apache.maven.api.cache; import org.apache.maven.api.annotations.Experimental; /** * Factory interface for creating new RequestCache instances. * Implementations should handle the creation and configuration of cache instances * based on the current Maven session and environment. * * @since 4.0.0 * @see RequestCache */
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Feb 07 00:45:02 UTC 2025 - 1.4K bytes - Viewed (0) -
samples/crawler/src/main/java/okhttp3/sample/Crawler.java
System.out.println("Usage: Crawler <cache dir> <root>"); return; } int threadCount = 20; int queueLimit = 1000; int hostLimit = 25; long cacheByteCount = 1024L * 1024L * 100L; Cache cache = new Cache(new File(args[0]), cacheByteCount); OkHttpClient client = new OkHttpClient.Builder() .cache(cache) .callTimeout(5, TimeUnit.SECONDS)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jul 23 00:58:06 UTC 2025 - 5K bytes - Viewed (0) -
.github/workflows/publish.yml
- name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.10" # Issue ref: https://github.com/actions/setup-python/issues/436 # cache: "pip" # cache-dependency-path: pyproject.toml - name: Install build dependencies run: pip install build - name: Build distribution env: TIANGOLO_BUILD_PACKAGE: ${{ matrix.package }}
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri Sep 05 12:48:16 UTC 2025 - 1K bytes - Viewed (0) -
.github/workflows/test.yml
uses: actions/setup-python@v5 with: python-version: "3.11" - name: Setup uv uses: astral-sh/setup-uv@v6 with: version: "0.4.15" enable-cache: true cache-dependency-glob: | requirements**.txt pyproject.toml - name: Install Dependencies run: uv pip install -r requirements-tests.txt - name: Install Pydantic v2
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri Aug 15 21:44:06 UTC 2025 - 4.5K bytes - Viewed (0)