Updated default cache duration for settings to the most common value of 1 hour, set a default for IsSecret and removed redundant properties.

This commit is contained in:
barelyprofessional
2025-07-07 15:38:54 -05:00
parent c790b3f9ae
commit 9b677ea23d
2 changed files with 2 additions and 146 deletions

View File

@@ -10,7 +10,7 @@ public class BuiltInSettingsModel
public required string Regex { get; set; }
public required string Description { get; set; }
public string? Default { get; set; }
public required bool IsSecret { get; set; }
public required TimeSpan CacheDuration { get; set; } = TimeSpan.Zero;
public bool IsSecret { get; set; } = false;
public TimeSpan CacheDuration { get; set; } = TimeSpan.FromHours(1);
public required SettingValueType ValueType { get; set; }
}