Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 62 for cache3 (0.25 sec)

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

    ๐Ÿง ๐Ÿ˜ ๐ŸŒโ” ๐Ÿ‘† ๐Ÿ’ญ ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ”— ๐Ÿค™ ๐Ÿ”  ๐Ÿ” (๐ŸŽฒ ๐Ÿ’— ๐Ÿ•ฐ) ๐ŸŽ ๐Ÿ“จ โ†ฉ๏ธ โš™๏ธ "๐Ÿ’พ" ๐Ÿ’ฒ, ๐Ÿ‘† ๐Ÿ’ช โš’ ๐Ÿ”ข `use_cache=False` ๐Ÿ•โ” โš™๏ธ `Depends`:
    
    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)):
        return {"fresh_value": fresh_value}
    ```
    
    ## ๐ŸŒƒ
    
    โ†–๏ธ โšช๏ธโžก๏ธ ๐ŸŒ ๐ŸŽ€ ๐Ÿ”ค โš™๏ธ ๐Ÿ“ฅ, **๐Ÿ”— ๐Ÿ’‰** โš™๏ธ ๐Ÿ™….
    
    ๐Ÿ”ข ๐Ÿ‘ˆ ๐Ÿ‘€ ๐ŸŽ *โžก ๐Ÿ› ๏ธ ๐Ÿ”ข*.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  2. 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 May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 15 16:43:41 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  3. docs/de/docs/deployment/docker.md

    ```Dockerfile
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    ```
    
    Die Datei mit den Paketanforderungen wird sich **nicht hรคufig รคndern**. Wenn Docker also nur diese Datei kopiert, kann es fรผr diesen Schritt **den Cache verwenden**.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:19:17 GMT 2024
    - 38.9K bytes
    - Viewed (0)
  4. fastapi/dependencies/utils.py

                continue
            if sub_dependant.use_cache and sub_dependant.cache_key in dependency_cache:
                solved = dependency_cache[sub_dependant.cache_key]
            elif is_gen_callable(call) or is_async_gen_callable(call):
                solved = await solve_generator(
                    call=call, stack=async_exit_stack, sub_values=sub_values
                )
            elif is_coroutine_callable(call):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  5. docs_src/settings/app03_an/main.py

    from functools import lru_cache
    from typing import Annotated
    
    from fastapi import Depends, FastAPI
    
    from . import config
    
    app = FastAPI()
    
    
    @lru_cache
    def get_settings():
        return config.Settings()
    
    
    @app.get("/info")
    async def info(settings: Annotated[config.Settings, Depends(get_settings)]):
        return {
            "app_name": settings.app_name,
            "admin_email": settings.admin_email,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 451 bytes
    - Viewed (0)
  6. docs/en/docs/advanced/settings.md

    `@lru_cache` is part of `functools` which is part of Python's standard library, you can read more about it in the <a href="https://docs.python.org/3/library/functools.html#functools.lru_cache" class="external-link" target="_blank">Python docs for `@lru_cache`</a>.
    
    ## Recap
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  7. docs/zh/docs/advanced/settings.md

    ่ฟ™ๆ ท๏ผŒๅฎƒ็š„่กŒไธบๅ‡ ไนŽๅฐฑๅƒๆ˜ฏไธ€ไธชๅ…จๅฑ€ๅ˜้‡ใ€‚ไฝ†ๆ˜ฏ็”ฑไบŽๅฎƒไฝฟ็”จไบ†ไพ่ต–้กนๅ‡ฝๆ•ฐ๏ผŒๅ› ๆญคๆˆ‘ไปฌๅฏไปฅ่ฝปๆพๅœฐ่ฟ›่กŒๆต‹่ฏ•ๆ—ถ็š„่ฆ†็›–ใ€‚
    
    `@lru_cache` ๆ˜ฏ `functools` ็š„ไธ€้ƒจๅˆ†๏ผŒๅฎƒๆ˜ฏ Python ๆ ‡ๅ‡†ๅบ“็š„ไธ€้ƒจๅˆ†๏ผŒๆ‚จๅฏไปฅๅœจ<a href="https://docs.python.org/3/library/functools.html#functools.lru_cache" class="external-link" target="_blank">Python ๆ–‡ๆกฃไธญไบ†่งฃๆœ‰ๅ…ณ `@lru_cache` ็š„ๆ›ดๅคšไฟกๆฏ</a>ใ€‚
    
    ## ๅฐ็ป“
    
    ๆ‚จๅฏไปฅไฝฟ็”จ Pydantic ่ฎพ็ฝฎๅค„็†ๅบ”็”จ็จ‹ๅบ็š„่ฎพ็ฝฎๆˆ–้…็ฝฎ๏ผŒๅˆฉ็”จ Pydantic ๆจกๅž‹็š„ๆ‰€ๆœ‰ๅŠŸ่ƒฝใ€‚
    
    * ้€š่ฟ‡ไฝฟ็”จไพ่ต–้กน๏ผŒๆ‚จๅฏไปฅ็ฎ€ๅŒ–ๆต‹่ฏ•ใ€‚
    * ๆ‚จๅฏไปฅไฝฟ็”จ `.env` ๆ–‡ไปถใ€‚
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  8. docs/em/docs/deployment/docker.md

        ๐Ÿ‘‰ ๐Ÿ“ **๐Ÿšซ ๐Ÿ”€ ๐Ÿ›Ž**, โ˜ ๐Ÿ”œ ๐Ÿ” โšซ๏ธ &amp; โš™๏ธ **๐Ÿ’พ** ๐Ÿ‘‰ ๐Ÿ”, ๐Ÿ› ๏ธ ๐Ÿ’พ โญ ๐Ÿ” ๐Ÿ’โ€โ™‚๏ธ.
    
    4๏ธโƒฃ. โŽ ๐Ÿ“ฆ ๐Ÿ”— ๐Ÿ“„ ๐Ÿ“.
    
         `--no-cache-dir` ๐ŸŽ› ๐Ÿ’ฌ `pip` ๐Ÿšซ ๐Ÿ–Š โฌ ๐Ÿ“ฆ ๐ŸŒ, ๐Ÿ‘ˆ ๐Ÿ•ด ๐Ÿšฅ `pip` ๐Ÿ”œ ๐Ÿƒ ๐Ÿ”„ โŽ ๐ŸŽ ๐Ÿ“ฆ, โœ‹๏ธ ๐Ÿ‘ˆ ๐Ÿšซ ๐Ÿ’ผ ๐Ÿ•โ” ๐Ÿ‘ท โฎ๏ธ ๐Ÿ“ฆ.
    
        !!! note
             `--no-cache-dir` ๐Ÿ•ด ๐Ÿ”— `pip`, โšซ๏ธ โœ”๏ธ ๐Ÿ•ณ โฎ๏ธ โ˜ โš–๏ธ ๐Ÿ“ฆ.
    
         `--upgrade` ๐ŸŽ› ๐Ÿ’ฌ `pip` โ™ป ๐Ÿ“ฆ ๐Ÿšฅ ๐Ÿ‘ซ โช โŽ.
    
        โ†ฉ๏ธ โฎ๏ธ ๐Ÿ” ๐Ÿ–จ ๐Ÿ“ ๐Ÿ’ช ๐Ÿ” **โ˜ ๐Ÿ’พ**, ๐Ÿ‘‰ ๐Ÿ” ๐Ÿ”œ **โš™๏ธ โ˜ ๐Ÿ’พ** ๐Ÿ•โ” ๐Ÿ’ช.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 27.9K bytes
    - Viewed (0)
  9. .github/workflows/build-docs.yml

            with:
              python-version: "3.11"
          - uses: actions/cache@v4
            id: cache
            with:
              path: ${{ env.pythonLocation }}
              key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-docs.txt', 'requirements-docs-tests.txt') }}-v07
          - name: Install docs extras
            if: steps.cache.outputs.cache-hit != 'true'
            run: pip install -r requirements-docs.txt
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 03:12:00 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  10. scripts/docs.py

    import json
    import logging
    import os
    import re
    import shutil
    import subprocess
    from functools import lru_cache
    from http.server import HTTPServer, SimpleHTTPRequestHandler
    from importlib import metadata
    from multiprocessing import Pool
    from pathlib import Path
    from typing import Any, Dict, List, Optional, Union
    
    import mkdocs.commands.build
    import mkdocs.commands.serve
    import mkdocs.config
    import mkdocs.utils
    import typer
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
Back to top