Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for fresh (0.17 sec)

  1. docs/de/docs/tutorial/dependencies/sub-dependencies.md

        ```Python hl_lines="1"
        async def needy_dependency(fresh_value: Annotated[str, Depends(get_value, use_cache=False)]):
            return {"fresh_value": fresh_value}
        ```
    
    === "Python 3.8+ nicht annotiert"
    
        !!! tip "Tipp"
            Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
        ```Python hl_lines="1"
        async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)):
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:09:48 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt

        assertThat(client.connectionPool.connectionCount()).isEqualTo(2)
        assertThat(server.takeRequest().sequenceNumber)
          .isEqualTo(0) // Fresh connection.
        assertThat(server.takeRequest().sequenceNumber)
          .isEqualTo(0) // Fresh connection.
      }
    
      /**
       * Check we would use an existing connection to a later DNS result instead of connecting to the
       * first DNS result for the first time.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  3. docs/en/docs/history-design-future.md

    By the time I started creating **FastAPI** itself, most of the pieces were already in place, the design was defined, the requirements and tools were ready, and the knowledge about the standards and specifications was clear and fresh.
    
    ## Future
    
    By this point, it's already clear that **FastAPI** with its ideas is being useful for many people.
    
    It is being chosen over previous alternatives for suiting many use cases better.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheControlTest.kt

            .minFresh(3.seconds)
            .onlyIfCached()
            .noTransform()
            .immutable()
            .build()
        assertThat(cacheControl.toString()).isEqualTo(
          "no-cache, no-store, max-age=1, max-stale=2, min-fresh=3, only-if-cached, no-transform, immutable",
        )
        assertThat(cacheControl.noCache).isTrue()
        assertThat(cacheControl.noStore).isTrue()
        assertThat(cacheControl.maxAgeSeconds).isEqualTo(1)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/dependencies/sub-dependencies.md

    高度なシナリオでは、「キャッシュされた」値を使うのではなく、同じリクエストの各ステップ(おそらく複数回)で依存関係を呼び出す必要があることがわかっている場合、`Depens`を使用する際に、`use_cache=False`というパラメータを設定することができます。
    
    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)):
        return {"fresh_value": fresh_value}
    ```
    
    ## まとめ
    
    ここで使われている派手な言葉は別にして、**依存性注入** システムは非常にシンプルです。
    
    *path operation関数*と同じように見えるただの関数です。
    
    しかし、それでも非常に強力で、任意の深くネストされた依存関係「グラフ」(ツリー)を宣言することができます。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 15 16:43:41 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  6. cmd/storage-errors.go

    var errSkipFile = errors.New("skip this file")
    
    var errIgnoreFileContrib = errors.New("ignore this file's contribution toward data-usage")
    
    // errXLBackend XL drive mode requires fresh deployment.
    var errXLBackend = errors.New("XL backend requires fresh drive")
    
    // StorageErr represents error generated by xlStorage call.
    type StorageErr string
    
    func (h StorageErr) Error() string {
    	return string(h)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CacheControlJvmTest.kt

            .onlyIfCached()
            .noTransform()
            .immutable()
            .build()
        assertThat(cacheControl.toString()).isEqualTo(
          "no-cache, no-store, max-age=1, max-stale=2, min-fresh=3, only-if-cached, " +
            "no-transform, immutable",
        )
        assertThat(cacheControl.noCache).isTrue()
        assertThat(cacheControl.noStore).isTrue()
        assertThat(cacheControl.maxAgeSeconds).isEqualTo(1)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt

            if (mustRevalidate) append("must-revalidate, ")
            if (maxStaleSeconds != -1) append("max-stale=").append(maxStaleSeconds).append(", ")
            if (minFreshSeconds != -1) append("min-fresh=").append(minFreshSeconds).append(", ")
            if (onlyIfCached) append("only-if-cached, ")
            if (noTransform) append("no-transform, ")
            if (immutable) append("immutable, ")
            if (isEmpty()) return ""
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  9. cmd/format-erasure.go

    		Version string `json:"version"` // Version of 'xl' format.
    		Disk    string `json:"drive"`   // Disk field carries assigned disk uuid.
    		// JBOD field carries the input disk order generated the first
    		// time when fresh disks were supplied.
    		JBOD []string `json:"jbod"`
    	} `json:"xl"` // Erasure field holds xl format.
    }
    
    // Represents the V2 backend disk structure version
    // under `.minio.sys` and actual data namespace.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  10. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

          assertThat(ioe.cause!!).isInstanceOf<EOFException>()
        }
      }
    
      // TODO GET preferred order - with tests to confirm this
      // 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() {
    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)
Back to top