mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Added in memory caching
This commit is contained in:
@@ -9,5 +9,5 @@ public class BuiltInSettingsModel
|
||||
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;
|
||||
}
|
||||
@@ -16,4 +16,6 @@ public class SettingDbModel
|
||||
public string? Default { get; set; } = null;
|
||||
// Prevents the value from being revealed to Sneedchat when queried by an admin
|
||||
public bool IsSecret { get; set; } = false;
|
||||
// Number of seconds to cache in memory, 0 to not cache
|
||||
public double CacheDuration { get; set; } = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user