Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 17 for cacheGet (0.05 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.MediaType.Companion.toMediaTypeOrNull
    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.internal.addHeaderLenient
    import okhttp3.internal.cacheGet
    import okhttp3.internal.platform.Platform.Companion.get
    import okhttp3.java.net.cookiejar.JavaNetCookieJar
    import okhttp3.testing.PlatformRule
    import okio.Buffer
    import okio.BufferedSink
    import okio.FileSystem
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Oct 03 17:41:45 GMT 2025
    - 116.8K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/project/artifact/DefaultProjectArtifactsCache.java

    import org.eclipse.aether.repository.WorkspaceRepository;
    
    /**
     */
    @Named
    @Singleton
    public class DefaultProjectArtifactsCache implements ProjectArtifactsCache {
        /**
         * CacheKey
         */
        protected static class CacheKey implements Key {
    
            private final String groupId;
    
            private final String artifactId;
    
            private final String version;
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        AtomicReference<LoadingCache<Integer, String>> cacheRef = new AtomicReference<>();
        CacheLoader<Integer, String> recursiveLoader =
            new CacheLoader<Integer, String>() {
              @Override
              public String load(Integer key) {
                if (key > 0) {
                  return key + ", " + cacheRef.get().getUnchecked(key - 1);
                } else {
                  return "0";
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  4. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

      override fun satisfactionFailure(
        call: Call,
        response: Response,
      ) {
        logWithTime("satisfactionFailure: $response")
      }
    
      override fun cacheHit(
        call: Call,
        response: Response,
      ) {
        logWithTime("cacheHit: $response")
      }
    
      override fun cacheMiss(call: Call) {
        logWithTime("cacheMiss")
      }
    
      override fun cacheConditionalHit(
        call: Call,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Oct 06 13:40:20 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/EventListenerAdapter.kt

      ) = onEvent(SatisfactionFailure(System.nanoTime(), call))
    
      override fun cacheMiss(call: Call) = onEvent(CacheMiss(System.nanoTime(), call))
    
      override fun cacheHit(
        call: Call,
        response: Response,
      ) = onEvent(CacheHit(System.nanoTime(), call))
    
      override fun cacheConditionalHit(
        call: Call,
        cachedResponse: Response,
      ) = onEvent(CacheConditionalHit(System.nanoTime(), call))
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt

      ) {
        logWithTime("satisfactionFailure")
      }
    
      override fun cacheMiss(call: Call) {
        logWithTime("cacheMiss")
      }
    
      override fun cacheHit(
        call: Call,
        response: Response,
      ) {
        logWithTime("cacheHit")
      }
    
      override fun cacheConditionalHit(
        call: Call,
        cachedResponse: Response,
      ) {
        logWithTime("cacheConditionalHit")
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Oct 07 21:03:04 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

                    recordArtifacts = pluginArtifactsCache.put(cacheKey, artifacts);
                } catch (PluginResolutionException e) {
                    pluginArtifactsCache.put(cacheKey, e);
                    pluginArtifactsCache.register(project, cacheKey, recordArtifacts);
                    throw new PluginManagerException(plugin, e.getMessage(), e);
                }
            }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 09 16:35:21 GMT 2025
    - 46.4K bytes
    - Click Count (0)
  8. 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 Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  9. 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 Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Oct 07 21:03:04 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

        if (networkRequest == null) {
          return cacheResponse!!
            .newBuilder()
            .cacheResponse(cacheResponse.stripBody())
            .build()
            .also {
              call.eventListener.cacheHit(call, it)
            }
        }
    
        if (cacheResponse != null) {
          call.eventListener.cacheConditionalHit(call, cacheResponse)
        } else if (cache != null) {
          call.eventListener.cacheMiss(call)
        }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 10.3K bytes
    - Click Count (0)
Back to Top