Added in memory caching

This commit is contained in:
barelyprofessional
2024-08-17 23:45:29 +08:00
parent b390368713
commit 71b46d73d2
10 changed files with 428 additions and 70 deletions

View File

@@ -2,8 +2,9 @@ using KfChatDotNetBot.Models.DbModels;
namespace KfChatDotNetBot.Settings;
public class SettingValue(string? value, SettingDbModel? dbEntry)
public class SettingValue(string? value, SettingDbModel dbEntry, bool cached)
{
public string? Value { get; set; } = value;
public SettingDbModel? DbEntry { get; set; } = dbEntry;
public SettingDbModel DbEntry { get; set; } = dbEntry;
public bool Cached { get; set; } = cached;
}