更新限额配置时更新缓存

This commit is contained in:
yexuzhong
2025-08-19 15:55:52 +08:00
parent 86aafef2de
commit b3ddc1c898
5 changed files with 96 additions and 4 deletions
+8
View File
@@ -10,6 +10,14 @@ namespace YLErp.Cache
/// </summary>
/// <returns></returns>
bool CacheEnable();
/// <summary>
/// 删除缓存
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
bool DeleteKey(string key);
/// <summary>
/// 字符串数据类型的保存
/// </summary>
+5
View File
@@ -44,6 +44,11 @@ namespace YLErp.Cache
return _cacheConfig.Value.Enable;
}
public bool DeleteKey(string key)
{
return db.KeyDelete(key);
}
public bool StringSet(string key, string value)
{
return db.StringSet(GenerateKey(key), value);