Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 143 for cache (0.13 sec)

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

       * default, OkHttp will perform lazy initialization upon the first usage of the cache.
       */
      @Throws(IOException::class)
      fun initialize() {
        cache.initialize()
      }
    
      /**
       * Closes the cache and deletes all of its stored values. This will delete all files in the cache
       * directory including files that weren't created by the cache.
       */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  2. cmd/data-usage-cache.go

    // dataUsageCacheV2 contains a cache of data usage entries version 2.
    type dataUsageCacheV2 struct {
    	Info  dataUsageCacheInfo
    	Cache map[string]dataUsageEntryV2
    }
    
    // dataUsageCacheV3 contains a cache of data usage entries version 3.
    type dataUsageCacheV3 struct {
    	Info  dataUsageCacheInfo
    	Cache map[string]dataUsageEntryV3
    }
    
    // dataUsageCacheV4 contains a cache of data usage entries version 4.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  3. okhttp/src/main/kotlin/okhttp3/CacheControl.kt

      }
    
      companion object {
        /**
         * Cache control request directives that require network validation of responses. Note that such
         * requests may be assisted by the cache via conditional GET requests.
         */
        @JvmField
        val FORCE_NETWORK = commonForceNetwork()
    
        /**
         * Cache control request directives that uses the cache only, even if the cached response is
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 10K bytes
    - Viewed (0)
  4. 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)
  5. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

      // 1. successful fresh cached GET response
      // 2. unsuccessful (404, 500) fresh cached GET response
      // 3. successful network response
      // 4. successful stale cached GET response
      // 5. unsuccessful response
      @Test
      fun usesCache() {
        val cache = Cache(cacheFs, "cache".toPath(), (100 * 1024).toLong())
        val cachedClient = bootstrapClient.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
    - 11K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/CacheTesting.java

        return Math.max(accessQueueSize(cache), writeQueueSize(cache));
      }
    
      static void processPendingNotifications(Cache<?, ?> cache) {
        if (hasLocalCache(cache)) {
          LocalCache<?, ?> cchm = toLocalCache(cache);
          cchm.processPendingNotifications();
        }
      }
    
      interface Receiver<T> {
        void accept(@Nullable T object);
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheTesting.java

        return Math.max(accessQueueSize(cache), writeQueueSize(cache));
      }
    
      static void processPendingNotifications(Cache<?, ?> cache) {
        if (hasLocalCache(cache)) {
          LocalCache<?, ?> cchm = toLocalCache(cache);
          cchm.processPendingNotifications();
        }
      }
    
      interface Receiver<T> {
        void accept(@Nullable T object);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  8. cmd/erasure.go

    					return
    				default:
    				}
    
    				// Load cache for bucket
    				cacheName := pathJoin(bucket.Name, dataUsageCacheName)
    				cache := dataUsageCache{}
    				scannerLogIf(ctx, cache.load(ctx, er, cacheName))
    				if cache.Info.Name == "" {
    					cache.Info.Name = bucket.Name
    				}
    				cache.Info.SkipHealing = healing
    				cache.Info.NextCycle = wantCycle
    				if cache.Info.Name != bucket.Name {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  9. CONTRIBUTING.md

    If you are not getting cache hits from the build cache, you may be using the wrong version of Java. A fixed version (Java 11) is required to get remote cache hits.
    
    ### Building a distribution from source
    
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Sat May 04 07:43:02 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  10. cmd/iam-object-store.go

    			err := iamOS.loadMappedPolicy(ctx, svcParent, stsUser, false, cache.iamSTSPolicyMap)
    			if err != nil && !errors.Is(err, errNoSuchPolicy) {
    				return fmt.Errorf("unable to load the policy mapping for the STS user `%s`: %w", svcParent, err)
    			}
    		}
    	}
    	// Copy svcUsersMap to cache.iamUsersMap
    	for k, v := range svcUsersMap {
    		cache.iamUsersMap[k] = v
    	}
    
    	cache.buildUserGroupMemberships()
    	return nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 19.9K bytes
    - Viewed (0)
Back to top