update 定时任务计划相关
This commit is contained in:
@@ -19,5 +19,6 @@ namespace Ewide.Core.Service
|
||||
Task<bool> SetAsync(string key, object value);
|
||||
Task<string> GetAsync(string key);
|
||||
Task<T> GetAsync<T>(string key);
|
||||
bool Exists(string cacheKey);
|
||||
}
|
||||
}
|
||||
@@ -174,5 +174,16 @@ namespace Ewide.Core.Service
|
||||
{
|
||||
await _cache.SetAsync(CommonConst.CACHE_AREA_CODE, areaCodes);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查给定 key 是否存在
|
||||
/// </summary>
|
||||
/// <param name="cacheKey">键</param>
|
||||
/// <returns></returns>
|
||||
[NonAction]
|
||||
public bool Exists(string cacheKey)
|
||||
{
|
||||
return _cache.Equals(cacheKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user