From 7b82ac364dfcc59d0bfe9182e055dd6e204a98a6 Mon Sep 17 00:00:00 2001 From: zpc Date: Mon, 5 Aug 2024 15:34:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/OtherController.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/2-api/HuanMeng.MiaoYu.WebApi/Controllers/OtherController.cs b/src/2-api/HuanMeng.MiaoYu.WebApi/Controllers/OtherController.cs index 6c3d6f5..bbcfb5c 100644 --- a/src/2-api/HuanMeng.MiaoYu.WebApi/Controllers/OtherController.cs +++ b/src/2-api/HuanMeng.MiaoYu.WebApi/Controllers/OtherController.cs @@ -20,11 +20,24 @@ namespace HuanMeng.MiaoYu.WebApi.Controllers /// [HttpGet("cache/clear")] [AllowAnonymous] - public async Task Clear() + public async Task ClearCache() { OtherBLL otherBLL = new OtherBLL(ServiceProvider); await otherBLL.CleraCache(); } + + /// + /// 清除缓存 + /// + /// + [HttpGet("cache/reload")] + [AllowAnonymous] + public async Task ReloadCache() + { + OtherBLL otherBLL = new OtherBLL(ServiceProvider); + await otherBLL.ReloadCache(); + + } } }