Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 318 for Cached (0.04 sec)

  1. okhttp/src/commonJvmAndroid/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()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.3K bytes
    - Viewed (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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  4. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/TestDohMain.kt

              .url(url)
              .post(true)
              .build(),
          )
        runBatch(badProviders, names)
        println("cached first run\n****************\n")
        names = listOf("google.com", "graph.facebook.com")
        bootstrapClient =
          bootstrapClient
            .newBuilder()
            .cache(dnsCache)
            .build()
        dnsProviders =
          providers(
            client = bootstrapClient,
            http2Only = true,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  5. .github/workflows/vulncheck.yml

        steps:
          - name: Check out code into the Go module directory
            uses: actions/checkout@v4
          - name: Set up Go
            uses: actions/setup-go@v5
            with:
              go-version: 1.24.x
              cached: false
          - name: Get official govulncheck
            run: go install golang.org/x/vuln/cmd/govulncheck@latest
            shell: bash
          - name: Run govulncheck
            run: govulncheck -show verbose ./...
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Apr 24 23:34:11 UTC 2025
    - 682 bytes
    - Viewed (0)
  6. src/test/java/jcifs/http/HandlerTest.java

            assertTrue(connection instanceof NtlmHttpURLConnection, "Should use cached handler and wrap it.");
        }
    
        @Test
        void testOpenConnection_CachedHandler_ReusesExistingHandler() throws Exception {
            // This test verifies that once a handler is cached, subsequent calls reuse it.
            setupMockProtocolHandlers();
            URL url1 = new URL("http://example.com/resource1");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  7. 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  8. 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.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/UserAgentHelper.java

        /** The request attribute key for storing cached user agent type */
        protected static final String USER_AGENT_TYPE = "ViewHelper.UserAgent";
    
        /**
         * Determines the user agent type from the current HTTP request.
         * The method analyzes the User-Agent header to categorize the browser type
         * and caches the result in the request attribute for subsequent calls.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  10. cmd/xl-storage-disk-id-check.go

    	t := time.Now().Unix()
    	e.init.Do(func() {
    		e.cached.Store(&AccElem{})
    		atomic.StoreInt64(&e.cachedSec, t)
    	})
    	acc := e.cached.Load()
    	if lastT := atomic.LoadInt64(&e.cachedSec); lastT != t {
    		// Check if lastT was changed by someone else.
    		if atomic.CompareAndSwapInt64(&e.cachedSec, lastT, t) {
    			// Now we swap in a new.
    			newAcc := &AccElem{}
    			old := e.cached.Swap(newAcc)
    			var a AccElem
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 25 05:41:04 UTC 2025
    - 34.5K bytes
    - Viewed (0)
Back to top