diff options
author | psushin <psushin@yandex-team.com> | 2025-05-09 17:03:24 +0300 |
---|---|---|
committer | psushin <psushin@yandex-team.com> | 2025-05-09 17:17:50 +0300 |
commit | d1e9fca1244341175bb344089fcbfc9c63c27df5 (patch) | |
tree | 10f00abdd79ee8bbf761092bd6e560a4b01bddae | |
parent | c513e0baefa66d50aa7d0c8779e16a30d5b6059e (diff) | |
download | ydb-d1e9fca1244341175bb344089fcbfc9c63c27df5.tar.gz |
Add DefaultlUserTags for user creation in YC IAM/OAuth authenticator + some refactoring.
1. Unify user creation in YC IAM & OAuth authenticators.
2. Use AsyncExpiringCache instead of AuthCache in CypressUserManager.
3. Do not cache mutating requests, e.g. CreateUser in CypressUserManager.
4. Introduced compat cache config, to migrate from TAuthCache config, to TAsyncExpiringCache config.
5. Converted TString -\> std::string around those changes.
### Changelog entry
Changed caching options in config of CypressUserManager for OAuthAuthenticator.
Migrate to options compatible with AsyncExpiringCache ("expire\_after\_\*\_time"). Older options ("cache\_ttl", "optimistic\_cache\_ttl") are deprecated and wiil be removed in future versions.
commit_hash:394f3b7d28ee6117f3d46826070b1d9c5342de20
-rw-r--r-- | yt/yt/core/misc/cache_config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt/yt/core/misc/cache_config.h b/yt/yt/core/misc/cache_config.h index 19760d43464..20cbef24817 100644 --- a/yt/yt/core/misc/cache_config.h +++ b/yt/yt/core/misc/cache_config.h @@ -97,7 +97,7 @@ struct TAsyncExpiringCacheConfig //! Time since last update, if it failed, after which an entry is removed. TDuration ExpireAfterFailedUpdateTime; - //! Time before next (background) update. + //! Time before next (background) update. If nullopt - background updates are disabled. std::optional<TDuration> RefreshTime; //! If set to true, cache will invoke DoGetMany once instead of DoGet on every entry during an update. |