Path: redb/redb.Core/Models/Configuration/EffectiveUserConfiguration.cs Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Core/Models/Configuration/EffectiveUserConfiguration.cs ---- using System; using System.Collections.Generic; namespace redb.Core.Models.Configuration { /// /// Effective user configuration (result of merging all configurations) /// All values are resolved (no null), obtained from chain: /// RedbServiceConfiguration -> Default User Config -> Role Config -> User Config /// public class EffectiveUserConfiguration { // === CACHE QUOTAS === /// /// The props cache limit of the process (): the /// cache has one limit, not a quota per user, so no user configuration changes this value. /// public int? PropsCacheSize { get; set; } /// /// User list cache quota /// null = no limits (for sys user) /// public int? ListCacheSize { get; set; } /// /// Object cache TTL /// public TimeSpan PropsCacheTtl { get; set; } /// /// List cache TTL /// public TimeSpan ListCacheTtl { get; set; } // === LOADING LIMITS === /// /// Maximum object loading depth /// public int MaxLoadDepth { get; set; } /// /// Maximum tree depth /// public int MaxTreeDepth { get; set; } // === PERFORMANCE === // === SECURITY === /// /// Always check permissions on load /// public bool AlwaysCheckPermissionsOnLoad { get; set; } /// /// Always check permissions on save /// public bool AlwaysCheckPermissionsOnSave { get; set; } // === API QUOTAS === /// /// Maximum number of requests per minute /// null = no limits /// public int? MaxRequestsPerMinute { get; set; } /// /// Maximum batch operation size /// public int MaxBatchSize { get; set; } // === STRATEGIES === /// /// How a save writes the Props of an object (DeleteInsert or ChangeTracking) /// public PropsSaveStrategy PropsSaveStrategy { get; set; } // === METADATA === /// /// List of configuration parameter sources /// Shows where each value was taken from /// public List Sources { get; set; } = new(); /// /// User ID for which the configuration was built /// public long UserId { get; set; } /// /// Effective configuration creation time (for caching) /// public DateTime CreatedAt { get; set; } = DateTime.UtcNow; } /// /// Configuration parameter source /// Used for debugging and understanding where value was taken from /// public class ConfigurationSource { /// /// Parameter name /// public string ParameterName { get; set; } = string.Empty; /// /// Value source /// Examples: "RedbServiceConfiguration", "Default User Config", "Role:Admin", "User" /// public string Source { get; set; } = string.Empty; /// /// Source priority (higher means more important) /// public int Priority { get; set; } /// /// Parameter value (as string for debugging) /// public string? Value { get; set; } } }