更新限额配置时更新缓存
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user