Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for _get_settings (0.32 sec)

  1. docs/em/docs/advanced/settings.md

    🚥 🔗 🔢 💖:
    
    ```Python
    def get_settings():
        return Settings()
    ```
    
    👥 🔜 ✍ 👈 🎚 🔠 📨, & 👥 🔜 👂 `.env` 📁 🔠 📨. 👶 👶
    
    ✋️ 👥 ⚙️ `@lru_cache` 👨‍🎨 🔛 🔝, `Settings` 🎚 🔜 ✍ 🕴 🕐, 🥇 🕰 ⚫️ 🤙. 👶 👶
    
    ```Python hl_lines="1  10"
    {!../../../docs_src/settings/app03/main.py!}
    ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/settings.md

        ```Python hl_lines="1  10"
        {!> ../../../docs_src/settings/app03/main.py!}
        ```
    
    Then for any subsequent calls of `get_settings()` in the dependencies for the next requests, instead of executing the internal code of `get_settings()` and creating a new `Settings` object, it will return the same object that was returned on the first call, again and again.
    
    #### `lru_cache` Technical Details
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  3. docs/de/docs/advanced/settings.md

        ```Python hl_lines="1  10"
        {!> ../../../docs_src/settings/app03/main.py!}
        ```
    
    Dann wird bei allen nachfolgenden Aufrufen von `get_settings()`, in den Abhängigkeiten für darauffolgende Requests, dasselbe Objekt zurückgegeben, das beim ersten Aufruf zurückgegeben wurde, anstatt den Code von `get_settings()` erneut auszuführen und ein neues `Settings`-Objekt zu erstellen.
    
    #### Technische Details zu `lru_cache`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:17:14 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/sso/saml/SamlAuthenticator.java

                }
                final HttpServletResponse response = LaResponseUtil.getResponse();
                try {
                    final Auth auth = new Auth(getSettings(), request, response);
                    final Saml2Settings settings = auth.getSettings();
                    settings.setSPValidationOnly(true);
                    final String metadata = settings.getSPMetadata();
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  5. docs/zh/docs/advanced/settings.md

    === "Python 3.8+ 非注解版本"
    
        !!! tip
            如果可能,请尽量使用 `Annotated` 版本。
    
        ```Python hl_lines="1  10"
        {!> ../../../docs_src/settings/app03/main.py!}
        ```
    
    然后,在下一次请求的依赖项中对 `get_settings()` 进行任何后续调用时,它不会执行 `get_settings()` 的内部代码并创建新的 `Settings` 对象,而是返回在第一次调用时返回的相同对象,一次又一次。
    
    #### `lru_cache` 技术细节
    
    `@lru_cache` 修改了它所装饰的函数,以返回第一次返回的相同值,而不是再次计算它,每次都执行函数的代码。
    
    因此,下面的函数将对每个参数组合执行一次。然后,每个参数组合返回的值将在使用完全相同的参数组合调用函数时再次使用。
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java

                        value = ReflectionValueExtractor.evaluate(pathExpression, session.getSettings());
                        value = value + expression.substring(pathSeparator);
                    } else {
                        value = ReflectionValueExtractor.evaluate(expression, session.getSettings());
                    }
                } catch (Exception e) {
                    // TODO don't catch exception
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Oct 17 17:55:08 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  7. pkg/test/framework/suite.go

    	return newSuite(suiteName,
    		func(_ *suiteContext) int {
    			return m.Run()
    		},
    		os.Exit,
    		getSettings)
    }
    
    func newSuite(testID string, fn mRunFn, osExit func(int), getSettingsFn getSettingsFunc) *suiteImpl {
    	s := &suiteImpl{
    		testID:      testID,
    		mRun:        fn,
    		osExit:      osExit,
    		getSettings: getSettingsFn,
    		labels:      label.NewSet(),
    	}
    
    	return s
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  8. mockwebserver/api/mockwebserver3.api

    	public final fun getInTunnel ()Z
    	public final fun getInformationalResponses ()Ljava/util/List;
    	public final fun getMessage ()Ljava/lang/String;
    	public final fun getPushPromises ()Ljava/util/List;
    	public final fun getSettings ()Lokhttp3/internal/http2/Settings;
    	public final fun getSocketPolicy ()Lmockwebserver3/SocketPolicy;
    	public final fun getStatus ()Ljava/lang/String;
    	public final fun getStreamHandler ()Lmockwebserver3/StreamHandler;
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 03 21:59:45 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/invocation/DefaultGradle.java

            this.baseProjectClassLoaderScope = classLoaderScope;
        }
    
        @Override
        public SettingsInternal getSettings() {
            if (settings == null) {
                throw new IllegalStateException("The settings are not yet available for " + this + ".");
            }
            return settings.getSettings();
        }
    
        @Override
        public void attachSettings(@Nullable SettingsState settings) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 05:18:22 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  10. maven-compat/src/main/java/org/apache/maven/plugin/internal/DefaultPluginManager.java

                        PluginNotFoundException, PluginVersionNotFoundException {
            return verifyPlugin(plugin, project, session.getSettings(), session.getLocalRepository());
        }
    
        public PluginDescriptor loadPluginFully(Plugin plugin, MavenProject project, MavenSession session)
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 11:28:54 UTC 2023
    - 10K bytes
    - Viewed (0)
Back to top