@acorex/platform 20.9.9 → 20.9.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -942,6 +942,24 @@ class AXPSettingsService {
942
942
  }
943
943
  return cloneDeep(effective);
944
944
  }
945
+ /**
946
+ * Synchronous read from the in-memory scope cache (User → Tenant → Platform).
947
+ * Returns `undefined` when the key is not cached yet (e.g. before {@link load} completes).
948
+ */
949
+ peekCached(key) {
950
+ const scopeOrder = [AXPPlatformScope.User, AXPPlatformScope.Tenant, AXPPlatformScope.Platform];
951
+ for (const scope of scopeOrder) {
952
+ const scopeCache = this.scopedSettingsCache.get(scope);
953
+ if (!scopeCache?.has(key)) {
954
+ continue;
955
+ }
956
+ const value = scopeCache.get(key);
957
+ if (value !== undefined && value !== null) {
958
+ return value;
959
+ }
960
+ }
961
+ return undefined;
962
+ }
945
963
  /**
946
964
  * Effective value (user → tenant → platform) when set; otherwise the definition default. Used for reads and coercion hints.
947
965
  */