From 44ced5c9cd0e1380db237c498a19160f909807e9 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期二, 07 十一月 2023 15:29:15 +0800 Subject: [PATCH] 增加缓存关联 --- Yw.Application.Unit.Core/2-type/2-std/SysUnitType_StdController.cs | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Yw.Application.Unit.Core/2-type/2-std/SysUnitType_StdController.cs b/Yw.Application.Unit.Core/2-type/2-std/SysUnitType_StdController.cs index d3e68be..28adb43 100644 --- a/Yw.Application.Unit.Core/2-type/2-std/SysUnitType_StdController.cs +++ b/Yw.Application.Unit.Core/2-type/2-std/SysUnitType_StdController.cs @@ -21,6 +21,7 @@ var vm_list = MemoryCacheHelper.GetSet(cacheKey, () => { var all = new Service.SysUnitType().GetAll(); + Service.SysUnitType.PublishCache(cacheKey); var vmList = all?.Select(x => new SysUnitTypeStdDto(x)).ToList(); return vmList; }, CacheHelper.CacheLevel5); -- Gitblit v1.9.3