Update ValuesController.cs

This commit is contained in:
zhanganzhong 2022-07-05 12:42:49 +08:00
parent 2b71debf43
commit 08464db50d

View File

@ -101,6 +101,12 @@ namespace Blog.Core.Controllers
}; };
} }
/// <summary>
/// 测试SqlSugar二级缓存
/// 可设置过期时间
/// 或通过接口方式更新该数据,也会离开清除缓存
/// </summary>
/// <returns></returns>
[HttpGet] [HttpGet]
[AllowAnonymous] [AllowAnonymous]
public async Task<BlogArticle> TestSqlsugarWithCache() public async Task<BlogArticle> TestSqlsugarWithCache()