增加缓存AOP切面

This commit is contained in:
JINBO
2023-01-06 16:32:43 +08:00
parent 1ed37897d5
commit 898be6c733
11 changed files with 332 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
using SqlSugar;
using System.Collections.Generic;
using System.Threading.Tasks;
using Yi.Framework.Common.Attribute;
using Yi.Framework.Common.Models;
using Yi.Framework.Interface;
using Yi.Framework.Interface.RABC;
@@ -15,6 +16,8 @@ namespace Yi.Framework.Service.RABC
public ConfigService(IRepository<ConfigEntity> repository) : base(repository)
{
}
[Caching(AbsoluteExpiration = 10)]
public async Task<PageModel<List<ConfigEntity>>> SelctPageList(ConfigEntity config, PageParModel page)
{
RefAsync<int> total = 0;