Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 390 for Cached (0.03 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp/src/jvmTest/kotlin/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()
    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. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

                entry.updateState(newState);
    
                // Flush any cached data if losing write cache
                if (Smb2LeaseState.hasWriteCaching(oldState) && !Smb2LeaseState.hasWriteCaching(newState)) {
                    flushCachedWrites(entry.getPath());
                }
    
                // Invalidate cached data if losing read cache
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java

            String directoryPath = smbFile.getPath();
    
            // Check if we can use cached directory listing
            if (dirManager.canCacheDirectoryListing(directoryPath)) {
                List<SmbFile> cachedFiles = dirManager.getCachedDirectoryListing(directoryPath);
                if (cachedFiles != null) {
                    log.debug("Using cached directory listing for: {}", directoryPath);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/graph/MapCacheTest.java

        }
      }
    
      @Test
      public void testPutNewValue() {
        assertThat(mapCache.put("key", "value")).isNull();
        assertThat(mapCache.get("key")).isEqualTo("value"); // ensure key/value is cached
        assertThat(mapCache.put("key", "new value")).isEqualTo("value");
        assertThat(mapCache.get("key")).isEqualTo("new value");
      }
    
      @Test
      public void testRemoveEqualKeyWithDifferentReference() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.2K bytes
    - Click Count (0)
  5. cmd/metacache-manager.go

    	if err != nil {
    		return err
    	}
    	cache := *c
    
    	if cache.status == scanStateNone || cache.fileNotFound {
    		return errFileNotFound
    	}
    	if cache.status == scanStateSuccess || cache.status == scanStateStarted {
    		if time.Since(cache.lastUpdate) > metacacheMaxRunningAge {
    			// We got a stale entry, mark error on handling server.
    			err := fmt.Errorf("timeout: list %s not updated", cache.id)
    			cache.error = err.Error()
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 5.2K bytes
    - Click Count (0)
  6. 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()
    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)
  7. 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.
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.1K bytes
    - Click Count (1)
  8. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            // Step 3: Verify can cache directory listing
            assertTrue(directoryLeaseManager.canCacheDirectoryListing(directoryPath));
    
            // Step 4: Initially no cached listing
            assertNull(directoryLeaseManager.getCachedDirectoryListing(directoryPath));
    
            // Step 5: Simulate directory enumeration and update cache
            List<SmbFile> files = Arrays.asList(mockFile1, mockFile2);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/CacheControlJvmTest.kt

      }
    
      @Test
      @Throws(Exception::class)
      fun parse() {
        val header = (
          "no-cache, no-store, max-age=1, s-maxage=2, private, public, must-revalidate, " +
            "max-stale=3, min-fresh=4, only-if-cached, no-transform"
        )
        val cacheControl =
          parse(
            Headers
              .Builder()
              .set("Cache-Control", header)
              .build(),
          )
        assertThat(cacheControl.noCache).isTrue()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-CacheControlCommon.kt

        when {
          name.equals("Cache-Control", ignoreCase = true) -> {
            if (headerValue != null) {
              // Multiple cache-control headers means we can't use the raw value.
              canUseHeaderValue = false
            } else {
              headerValue = value
            }
          }
          name.equals("Pragma", ignoreCase = true) -> {
            // Might specify additional cache-control params. We invalidate just in case.
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 7.2K bytes
    - Click Count (0)
Back to Top