😎代码清理
This commit is contained in:
parent
080acd1ddd
commit
a2338cb44f
@ -62,11 +62,11 @@ public class SysCacheService : IDynamicApiController, ISingleton
|
|||||||
return _cacheProvider.Cache.Set($"{_cacheOptions.Prefix}{key}", value, expire);
|
return _cacheProvider.Cache.Set($"{_cacheOptions.Prefix}{key}", value, expire);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取缓存的剩余生存时间
|
/// 获取缓存的剩余生存时间
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="key"></param>
|
/// <param name="key"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[NonAction]
|
[NonAction]
|
||||||
public TimeSpan GetExpire(string key)
|
public TimeSpan GetExpire(string key)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user