Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 200 for Caching (0.05 seconds)

  1. docs/features/caching.md

    Caching
    =======
    
    OkHttp implements an optional, off by default, Cache. OkHttp aims for RFC correct and
    pragmatic caching behaviour, following common real-world browser like Firefox/Chrome and
    server behaviour when ambiguous.
    
    # Basic Usage
    
    ```kotlin
      private val client: OkHttpClient = OkHttpClient.Builder()
          .cache(Cache(
              directory = File(application.cacheDir, "http_cache"),
              // $0.05 worth of phone storage in 2020
    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)
  2. src/main/java/org/codelibs/curl/io/ContentCache.java

     * It implements the Closeable interface to ensure that resources are properly released.
     *
     * <p>This class supports two types of content caching:
     * <ul>
     *   <li>In-memory caching using a byte array</li>
     *   <li>File-based caching using a File object</li>
     * </ul>
     *
     * <p>When an instance of ContentCache is created with a byte array, the content is cached in memory.
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  3. internal/stmt_store/stmt_store.go

    	// Parameters:
    	//   ctx: The context for the request, which can carry deadlines, cancellation signals, etc.
    	//   key: The key representing the SQL query, used for caching and preparing the statement.
    	//   isTransaction: Indicates whether this operation is part of a transaction, which may affect the caching strategy.
    	//   connPool: A connection pool that provides database connections.
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  4. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/PreparePatchRelease.kt

    import java.net.http.HttpRequest
    import java.net.http.HttpResponse
    
    
    private
    data class GradleServicesVersion(val version: String, val buildTime: String)
    
    
    @DisableCachingByDefault(because = "Not worth caching")
    abstract class PreparePatchRelease : DefaultTask() {
    
        @get:Internal
        abstract val versionFile: RegularFileProperty
    
        @get:Internal
        abstract val releasedVersionsFile: RegularFileProperty
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 14:47:12 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  5. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateReleasedVersions.kt

    import org.gradle.api.provider.Property
    import org.gradle.api.tasks.Internal
    import org.gradle.api.tasks.TaskAction
    import org.gradle.work.DisableCachingByDefault
    
    
    @DisableCachingByDefault(because = "Not worth caching")
    abstract class UpdateReleasedVersions : DefaultTask() {
    
        @get:Internal
        abstract val releasedVersionsFile: RegularFileProperty
    
        @get:Internal
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 14:47:12 GMT 2026
    - 1.3K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/helper/VirtualHostHelperTest.java

            // No matching host header
            String key = virtualHostHelper.getVirtualHostKey();
            assertEquals("", key);
    
            // Matching host header
            request.addHeader("Host", "example.com");
            key = virtualHostHelper.getVirtualHostKey();
            assertEquals("", key); // Still empty due to caching
    
            // Test caching by calling again - should return cached value
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.8K bytes
    - Click Count (0)
  7. .teamcity/performance-test-durations.json

        "linux" : 771,
        "windows" : 939,
        "macOs" : 557
      } ]
    }, {
      "scenario" : "org.gradle.performance.regression.android.AndroidIncrementalExecutionPerformanceTest.abi change with configuration caching",
      "durations" : [ {
        "testProject" : "nowInAndroidBuild",
        "linux" : 384,
        "windows" : 479,
        "macOs" : 368
      }, {
        "testProject" : "santaTrackerAndroidBuild",
        "linux" : 673,
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 04:45:09 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/mylasta/direction/FessConfigImplTest.java

                // Clean up system property
                System.clearProperty(Constants.FESS_CONFIG_PREFIX + testKey);
            }
        }
    
        // Test caching mechanism
        @Test
        public void test_get_caching() {
            // Get property twice to test caching behavior
            String testKey = "domain.title";
            String value1 = fessConfig.get(testKey);
            String value2 = fessConfig.get(testKey);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.9K bytes
    - Click Count (0)
  9. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/tasks/BuildReceipt.kt

    import org.gradle.work.DisableCachingByDefault
    import java.text.SimpleDateFormat
    import java.util.Date
    import java.util.Properties
    import java.util.TimeZone
    
    
    @DisableCachingByDefault(because = "Not worth caching")
    abstract class BuildReceipt : DefaultTask() {
        companion object {
            private
            val timestampFormat = newSimpleDateFormatUTC("yyyyMMddHHmmssZ")
    
            private
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 25 08:51:12 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/cache/CacheBuilderSpec.java

            valueParser.parse(spec, key, value);
          }
        }
    
        return spec;
      }
    
      /** Returns a CacheBuilderSpec that will prevent caching. */
      public static CacheBuilderSpec disableCaching() {
        // Maximum size of zero is one way to block caching
        return CacheBuilderSpec.parse("maximumSize=0");
      }
    
      /** Returns a CacheBuilder configured according to this instance's specification. */
    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