修改问题
This commit is contained in:
parent
1911844256
commit
7b82ac364d
|
|
@ -20,11 +20,24 @@ namespace HuanMeng.MiaoYu.WebApi.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpGet("cache/clear")]
|
[HttpGet("cache/clear")]
|
||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
public async Task Clear()
|
public async Task ClearCache()
|
||||||
{
|
{
|
||||||
OtherBLL otherBLL = new OtherBLL(ServiceProvider);
|
OtherBLL otherBLL = new OtherBLL(ServiceProvider);
|
||||||
await otherBLL.CleraCache();
|
await otherBLL.CleraCache();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 清除缓存
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpGet("cache/reload")]
|
||||||
|
[AllowAnonymous]
|
||||||
|
public async Task ReloadCache()
|
||||||
|
{
|
||||||
|
OtherBLL otherBLL = new OtherBLL(ServiceProvider);
|
||||||
|
await otherBLL.ReloadCache();
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user