Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for cacheDir (0.16 seconds)

  1. android-test/src/androidDeviceTest/java/okhttp/android/test/OkHttpTest.kt

        server.enqueue(MockResponse(body = "abc"))
    
        val ctxt = InstrumentationRegistry.getInstrumentation().targetContext.applicationContext
    
        val cacheSize = 1L * 1024 * 1024 // 1MB
        val cache = Cache(ctxt.cacheDir.resolve("testCache"), cacheSize)
    
        try {
          client =
            client
              .newBuilder()
              .cache(cache)
              .build()
    
          val request =
            Request
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 29.9K bytes
    - Click Count (0)
  2. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

    import kotlin.reflect.KClass
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.junit5.StartStop
    import okhttp3.Cache
    import okhttp3.CallEvent
    import okhttp3.CallEvent.CacheHit
    import okhttp3.CallEvent.CacheMiss
    import okhttp3.Dns
    import okhttp3.EventRecorder
    import okhttp3.OkHttpClient
    import okhttp3.Protocol
    import okhttp3.testing.PlatformRule
    import okio.Buffer
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  3. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

        listener.cacheConditionalHit(call, response)
        listener.cacheHit(call, response)
        listener.cacheMiss(call)
        listener.satisfactionFailure(call, response)
        logRecorder
          .assertLogMatch(Regex("""cacheConditionalHit: Response\{protocol=h2, code=200, message=, url=$url\}"""))
          .assertLogMatch(Regex("""cacheHit: Response\{protocol=h2, code=200, message=, url=$url\}"""))
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

        ) {
          for (delegate in eventListeners) {
            delegate.satisfactionFailure(call, response)
          }
        }
    
        override fun cacheHit(
          call: Call,
          response: Response,
        ) {
          for (delegate in eventListeners) {
            delegate.cacheHit(call, response)
          }
        }
    
        override fun cacheMiss(call: Call) {
          for (delegate in eventListeners) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Oct 07 21:03:04 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

        if (networkRequest == null) {
          return cacheResponse!!
            .newBuilder()
            .cacheResponse(cacheResponse.stripBody())
            .build()
            .also {
              chain.eventListener.cacheHit(call, it)
            }
        }
    
        if (cacheResponse != null) {
          chain.eventListener.cacheConditionalHit(call, cacheResponse)
        } else if (cache != null) {
          chain.eventListener.cacheMiss(call)
        }
    
    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)
  6. cmd/xl-storage-disk-id-check.go

    	}
    
    	info, err = p.storage.DiskInfo(ctx, opts)
    	if err != nil {
    		return info, err
    	}
    
    	// check cached diskID against backend
    	// only if its non-empty.
    	cachedID := *p.diskID.Load()
    	if cachedID != "" && cachedID != info.ID {
    		return info, errDiskNotFound
    	}
    	return info, nil
    }
    
    func (p *xlStorageDiskIDCheck) MakeVolBulk(ctx context.Context, volumes ...string) (err error) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Apr 25 05:41:04 GMT 2025
    - 34.5K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/InternalDistributionBwcSetupPlugin.java

                if (useNativeExpanded) {
                    c.getOutputs().dir(expectedOutputFile);
                } else {
                    c.getOutputs().files(expectedOutputFile);
                }
                c.getOutputs().cacheIf("BWC distribution caching is disabled on 'master' branch", task -> {
                    String gitBranch = System.getenv("GIT_BRANCH");
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Aug 18 09:11:28 GMT 2021
    - 14.5K bytes
    - Click Count (0)
  8. Vagrantfile

      SHELL
    end
    
    def dnf_common(config, name)
      # Autodetect doesn't work....
      if Vagrant.has_plugin?('vagrant-cachier')
        config.cache.auto_detect = false
        config.cache.enable :generic, { :cache_dir => '/var/cache/dnf' }
      end
      linux_common(
        config,
        name,
        update_command: 'dnf check-update',
        update_tracking_file: '/var/cache/dnf/last_update',
        install_command: 'dnf install -y',
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Feb 17 17:41:23 GMT 2021
    - 14.9K bytes
    - Click Count (0)
  9. docs/changelogs/changelog_4x.md

            .build()
    
        val client = OkHttpClient.Builder()
            .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager)
            .build()
        ```
    
     *  New: Add `cacheHit`, `cacheMiss`, and `cacheConditionalHit()` events to `EventListener`. Use
        these in logs, metrics, and even test cases to confirm your cache headers are configured as
        expected.
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Click Count (0)
  10. docs/tr/docs/deployment/docker.md

        `--upgrade` seçeneği, paketler zaten yüklüyse `pip`'e onları yükseltmesini söyler.
    
        Bir önceki adım (dosyayı kopyalama) **Docker cache** tarafından tespit edilebildiği için, bu adım da uygun olduğunda **Docker cache'i kullanır**.
    
        Bu adımda cache kullanmak, geliştirme sırasında image'ı tekrar tekrar build ederken size çok **zaman** kazandırır; her seferinde bağımlılıkları **indirip yüklemek** zorunda kalmazsınız.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 29.6K bytes
    - Click Count (0)
Back to Top