Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 779 for cache3 (0.15 sec)

  1. okhttp/src/main/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(internal val cache: Cache?) : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Interceptor.Chain): Response {
        val call = chain.call()
        val cacheCandidate = cache?.get(chain.request().requestForCache())
    
        val now = System.currentTimeMillis()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt

        cache = buildCache("/cache/".toPath(), Int.MAX_VALUE.toLong(), loggingFileSystem)
        client =
          clientTestRule.newClientBuilder()
            .cache(cache)
            .cookieJar(JavaNetCookieJar(cookieManager))
            .build()
      }
    
      @AfterEach
      fun tearDown() {
        ResponseCache.setDefault(null)
        if (this::cache.isInitialized) {
          cache.delete()
        }
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 6K bytes
    - Viewed (1)
  3. android/guava/src/com/google/common/cache/CacheBuilder.java

     * by the garbage collector. Entries with reclaimed keys or values may be removed from the cache on
     * each cache modification, on occasional cache accesses, or on calls to {@link Cache#cleanUp}; such
     * entries may be counted in {@link Cache#size}, but will never be visible to read or write
     * operations.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  4. 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.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  5. 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>.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Jun 23 19:57:03 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  6. android/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>.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Jun 23 19:57:03 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  7. build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/services/CachesCleaner.kt

            fileSystemOperations.removeOldVersionsFromDir(workerDir.dir("caches"), expireDistributionCache)
    
            // Remove scripts caches
            fileSystemOperations.removeCachedScripts(workerDir.dir("caches").asFile)
    
            // Remove script caches from TestKit integTest temp dir
            // location defined in TempTestKitDirProvider, copied here
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Jan 08 12:45:57 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/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.directory.path.toPath(), Int.MAX_VALUE.toLong())
        client =
          client.newBuilder()
            .cache(cache)
            .build()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  9. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

            VersionRange cached = CACHE_VERSION.get(version);
            if (cached == null) {
                List<Restriction> restrictions = Collections.emptyList();
                cached = new VersionRange(new DefaultArtifactVersion(version), restrictions);
                CACHE_VERSION.put(version, cached);
            }
            return cached;
        }
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/CacheBuilder.java

     * by the garbage collector. Entries with reclaimed keys or values may be removed from the cache on
     * each cache modification, on occasional cache accesses, or on calls to {@link Cache#cleanUp}; such
     * entries may be counted in {@link Cache#size}, but will never be visible to read or write
     * operations.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
Back to top