- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 25 for getAsSettings (0.09 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/en/docs/advanced/settings.md
{* ../../docs_src/settings/app03_an_py39/main.py hl[1,11] *} Then for any subsequent call 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 { #lru-cache-technical-details }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 11.2K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jan 24 17:29:44 GMT 2025 - 16.6K bytes - Click Count (0) -
docs/zh/docs/advanced/settings.md
如果依赖项函数只是这样的: ```Python 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` 对象,而是返回在第一次调用时返回的相同对象,一次又一次。Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 12.7K bytes - Click Count (0) -
tests/test_tutorial/test_settings/test_app02.py
return test_main_mod def test_settings(main_mod: ModuleType, monkeypatch: MonkeyPatch): monkeypatch.setenv("ADMIN_EMAIL", "******@****.***") settings = main_mod.get_settings() assert settings.app_name == "Awesome API" assert settings.items_per_user == 50 def test_override_settings(test_main_mod: ModuleType):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 1K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSession.java
return repositories == null ? null : map(repositories, this::toArtifactRepository); } @Nonnull @Override public Settings getSettings() { return getMavenSession().getSettings().getDelegate(); } @Nonnull @Override public Collection<ToolchainModel> getToolchains() { return getMavenSession().getRequest().getToolchains().values().stream()
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 8.9K bytes - Click Count (0) -
tests/test_tutorial/test_settings/test_app03.py
return main_mod def test_settings(main_mod: ModuleType, monkeypatch: MonkeyPatch): monkeypatch.setenv("ADMIN_EMAIL", "******@****.***") settings = main_mod.get_settings() assert settings.app_name == "Awesome API" assert settings.admin_email == "******@****.***" assert settings.items_per_user == 50 def test_endpoint(main_mod: ModuleType, monkeypatch: MonkeyPatch):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 1.2K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/RemoteRepository.java
* </p> * * * @since 4.0.0 * @see Repository * @see LocalRepository * @see Session#getSettings() * @see ModelBase#getRepositories() * @see ModelBase#getPluginRepositories() */ @Experimental @Immutable public interface RemoteRepository extends Repository { @Nonnull String getUrl();Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Aug 27 21:13:34 GMT 2024 - 3.3K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
@Deprecated @Override public ArtifactRepository getMirrorRepository(ArtifactRepository repository) { Mirror mirror = mirrorSelector.getMirror( repository, legacySupport.getSession().getSettings().getMirrors()); if (mirror != null) { String id = mirror.getId(); if (id == null) { // TODO this should be illegal in settings.xmlCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 6.5K bytes - Click Count (0) -
internal/config/identity/openid/openid.go
// Enabled returns if configURL is enabled. func Enabled(kvs config.KVS) bool { return kvs.Get(ConfigURL) != "" } // GetSettings - fetches OIDC settings for site-replication related validation. // NOTE that region must be populated by caller as this package does not know. func (r *Config) GetSettings() madmin.OpenIDSettings { res := madmin.OpenIDSettings{} if !r.Enabled { return res } h := sha256.New()
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 17.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java
objects.put("session.", session); objects.put("project.", project); objects.put("mojo.", mojoExecution); objects.put("settings.", session.getSettings()); for (Map.Entry<String, Object> ctx : objects.entrySet()) { if (expression.startsWith(ctx.getKey())) { try { int pathSeparator = expression.indexOf('/');
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jan 24 17:29:44 GMT 2025 - 9.8K bytes - Click Count (0)