update 定时任务计划相关

This commit is contained in:
2021-07-15 15:53:11 +08:00
parent 82460caf6a
commit 231e998277
14 changed files with 1452 additions and 346 deletions

View File

@@ -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);
}
}

View File

@@ -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);
}
}
}