Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CacheStrategy (0.1 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

      )
      fun directory(): File = cache.directory.toFile()
    
      @Synchronized internal fun trackResponse(cacheStrategy: CacheStrategy) {
        requestCount++
    
        if (cacheStrategy.networkRequest != null) {
          // If this is a conditional request, we'll increment hitCount if/when it hits.
          networkCount++
        } else if (cacheStrategy.cacheResponse != null) {
          // This response uses the cache and not the network. That's a cache hit.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
Back to top