Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 98 for 1111 (0.01 sec)

  1. docs/zh/docs/advanced/settings.md

    def get_settings():
        return Settings()
    ```
    
    我们将为每个请求创建该对象,并且将在每个请求中读取 `.env` 文件。 ⚠️
    
    但是,由于我们在顶部使用了 `@lru_cache` 装饰器,因此只有在第一次调用它时,才会创建 `Settings` 对象一次。 ✔️
    
    {* ../../docs_src/settings/app03_an_py39/main.py hl[1,11] *}
    
    然后,在下一次请求的依赖项中对 `get_settings()` 进行任何后续调用时,它不会执行 `get_settings()` 的内部代码并创建新的 `Settings` 对象,而是返回在第一次调用时返回的相同对象,一次又一次。
    
    #### `lru_cache` 技术细节
    
    `@lru_cache` 修改了它所装饰的函数,以返回第一次返回的相同值,而不是再次计算它,每次都执行函数的代码。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/bigger-applications.md

    Now, let's include the `router`s from the submodules `users` and `items`:
    
    {* ../../docs_src/bigger_applications/app_an_py39/main.py hl[10:11] title["app/main.py"] *}
    
    /// info
    
    `users.router` contains the `APIRouter` inside of the file `app/routers/users.py`.
    
    And `items.router` contains the `APIRouter` inside of the file `app/routers/items.py`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/bigger-applications.md

    Inkludieren wir nun die `router` aus diesen Submodulen `users` und `items`:
    
    {* ../../docs_src/bigger_applications/app_an_py39/main.py hl[10:11] title["app/main.py"] *}
    
    /// info | Info
    
    `users.router` enthält den `APIRouter` in der Datei `app/routers/users.py`.
    
    Und `items.router` enthält den `APIRouter` in der Datei `app/routers/items.py`.
    
    ///
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 13:54:34 UTC 2025
    - 21.3K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/bigger-applications.md

    Давайте подключим маршрутизаторы (`router`) из суб-модулей `users` и `items`:
    
    {* ../../docs_src/bigger_applications/app_an_py39/main.py hl[10:11] title["app/main.py"] *}
    
    /// info | Примечание
    
    `users.router` содержит `APIRouter` из файла `app/routers/users.py`.
    
    А `items.router` содержит `APIRouter` из файла `app/routers/items.py`.
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 11 21:25:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

      }
    
      private fun upgradeResponse(request: RecordedRequest): MockResponse.Builder {
        val key = request.headers["Sec-WebSocket-Key"]
        return MockResponse
          .Builder()
          .status("HTTP/1.1 101 Switching Protocols")
          .setHeader("Connection", "Upgrade")
          .setHeader("Upgrade", "websocket")
          .setHeader("Sec-WebSocket-Accept", acceptHeader(key!!))
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  6. cmd/object-api-multipart_test.go

    			ListMultipartsInfo{KeyMarker: "europe-object", Prefix: "Asia", IsTruncated: false},
    			nil, true,
    		},
    		// Setting an invalid combination of uploadIDMarker and Marker (Test number 11-12).
    		{
    			bucketNames[0], "asia", "asia/europe/", "abc", "", 0,
    			ListMultipartsInfo{},
    			fmt.Errorf("Invalid combination of uploadID marker '%s' and marker '%s'", "abc", "asia/europe/"), false,
    		},
    		{
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 89.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        // 1 << 31 is negative because of overflow, 1 << 31 - 1 is positive
        // since isEvenLevel adds 1, we need to do - 2.
        assertTrue(MinMaxPriorityQueue.isEvenLevel((1 << 31) - 2));
        assertTrue(MinMaxPriorityQueue.isEvenLevel(Integer.MAX_VALUE - 1));
        assertThrows(IllegalStateException.class, () -> MinMaxPriorityQueue.isEvenLevel((1 << 31) - 1));
        assertThrows(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 36.1K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/bigger-applications.md

    ```Python hl_lines="5" title="app/main.py"
    {!../../docs_src/bigger_applications/app/main.py!}
    ```
    
    ### 包含 `users` 和 `items` 的 `APIRouter`
    
    现在,让我们来包含来自 `users` 和 `items` 子模块的 `router`。
    
    ```Python hl_lines="10-11" title="app/main.py"
    {!../../docs_src/bigger_applications/app/main.py!}
    ```
    
    /// info
    
    `users.router` 包含了 `app/routers/users.py` 文件中的 `APIRouter`。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun May 11 13:37:26 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  9. pom.xml

    			</plugin>
    			<plugin>
    				<artifactId>maven-antrun-plugin</artifactId>
    				<dependencies>
    					<dependency>
    						<groupId>org.apache.ant</groupId>
    						<artifactId>ant</artifactId>
    						<version>1.10.11</version>
    					</dependency>
    				</dependencies>
    				<configuration>
    					<target>
    						<ant antfile="${basedir}/dbflute.xml" target="download.dbflute" />
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 20 08:30:43 UTC 2025
    - 49.4K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v2_test.go

    				6:  {vDelMarker, vObj}, // disk 6
    				7:  {vDelMarker, vObj}, // disk 7
    				8:  {vDelMarker, vObj}, // disk 8
    				9:  {vDelMarker, vObj}, // disk 9
    				10: {vObj},             // disk 10
    				11: {vDelMarker, vObj}, // disk 11
    				12: {vDelMarker, vObj}, // disk 12
    				13: {vDelMarker, vObj}, // disk 13
    				14: {vDelMarker, vObj}, // disk 14
    				15: {vDelMarker, vObj}, // disk 15
    			},
    			quorum:      7,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 37.8K bytes
    - Viewed (0)
Back to top