Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 768 for cacheIf (0.15 seconds)

  1. okhttp/src/commonJvmAndroid/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(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

    import okio.Source
    import okio.Timeout
    import okio.buffer
    
    /** Serves requests from the cache and writes responses to the cache. */
    class CacheInterceptor : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Interceptor.Chain): Response {
        val call = chain.call()
        val cache = chain.cache
        val cacheCandidate = cache?.get(chain.request().requestForCache())
    
        val now = System.currentTimeMillis()
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 11 12:06:21 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/job/IndexExportJobTest.java

            source.put("content", "Body");
            source.put("cache", "cached data");
            source.put("host", "example.com");
    
            final Set<String> excludeFields = Set.of("cache");
            final String json = new JsonIndexExportFormatter().format(source, excludeFields);
    
            assertFalse(json.contains("\"cache\""));
            assertTrue(json.contains("\"host\": \"example.com\""));
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 09:08:38 GMT 2026
    - 66.1K bytes
    - Click Count (0)
  4. build-logic-settings/configuration-cache-compatibility/src/main/kotlin/gradlebuild.configuration-cache-compatibility.settings.gradle.kts

            tasks.configureEach {
                val task = this
                if (isIncompatible(task)) {
                    task.notCompatibleWithConfigurationCache("Task is not compatible with the configuration cache")
                }
            }
        }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 26 15:18:40 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  5. .github/workflows/maven.yml

              merge-multiple: true
              pattern: 'cache-${{ runner.os }}*'
              path: ${{ env.MIMIR_LOCAL }}
          - name: Publish cache
            uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
            if: ${{ github.event_name != 'pull_request' && !cancelled() && !failure() }}
            with:
              path: ${{ env.MIMIR_LOCAL }}
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Mar 24 08:21:28 GMT 2026
    - 12.2K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

     * the cache; the cache may delete or overwrite files from its directory. It is an error for
     * multiple processes to use the same cache directory at the same time.
     *
     * This cache limits the number of bytes that it will store on the filesystem. When the number of
     * stored bytes exceeds the limit, the cache will remove entries in the background until the limit
     * is satisfied. The limit is not strict: the cache may temporarily exceed it while waiting for
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  7. docs/features/caching.md

     - ConnectionReleased
     - CallEnd
    
    ## Cache directory
    
    The cache directory must be exclusively owned by a single instance.
    
    Deleting the cache when it is no longer needed can be done.  However this may delete the purpose of the cache
    which is designed to persist between app restarts.
    
    ```kotlin
    cache.delete()
    ```
    
    ## Pruning the Cache
    
    Pruning the entire Cache to clear space temporarily can be done using evictAll.
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 3.1K bytes
    - Click Count (1)
  8. guava/src/com/google/common/cache/package-info.java

     *
     * <p>The core interface used to represent caches is {@link Cache}. In-memory caches can be
     * configured and created using {@link CacheBuilder}, with cache entries being loaded by {@link
     * CacheLoader}. Statistics about cache performance are exposed using {@link CacheStats}.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/CachesExplained">caches</a>.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jan 03 19:02:39 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/helper/ViewHelper.java

        protected static final String CONTENT_DISPOSITION = "Content-Disposition";
    
        /** Cache key for highlighted cache content */
        protected static final String HL_CACHE = "hl_cache";
    
        /** Cache key for search queries */
        protected static final String QUERIES = "queries";
    
        /** Cache key for cache message */
        protected static final String CACHE_MSG = "cache_msg";
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 52.6K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

    """
        fileSystem.createDirectory(cache.directoryPath)
        writeFile(cache.directoryPath, "$urlKey.0", entryMetadata)
        writeFile(cache.directoryPath, "$urlKey.1", entryBody)
        writeFile(cache.directoryPath, "journal", journalBody)
        cache = Cache(fileSystem, cache.directoryPath, Int.MAX_VALUE.toLong())
        client =
          client
            .newBuilder()
            .cache(cache)
            .build()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Mar 20 09:13:37 GMT 2026
    - 121K bytes
    - Click Count (0)
Back to Top