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/3-value/2-std/SysUnitValue_StdController.cs | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Yw.Application.Unit.Core/3-value/2-std/SysUnitValue_StdController.cs b/Yw.Application.Unit.Core/3-value/2-std/SysUnitValue_StdController.cs index ab7c07f..586587d 100644 --- a/Yw.Application.Unit.Core/3-value/2-std/SysUnitValue_StdController.cs +++ b/Yw.Application.Unit.Core/3-value/2-std/SysUnitValue_StdController.cs @@ -22,6 +22,7 @@ var vm_list = MemoryCacheHelper.GetSet(cacheKey, () => { var all = new Service.SysUnitValue().GetByTypeID(typeId); + Service.SysUnitValue.PublishCache(cacheKey); var vmList = all?.Select(x => new SysUnitValueStdDto(x)).ToList(); return vmList; }, CacheHelper.CacheLevel5); @@ -42,6 +43,7 @@ var vm_list = MemoryCacheHelper.GetSet(cacheKey, () => { var all = new Service.SysUnitValue().GetByTypeCode(typeCode); + Service.SysUnitValue.PublishCache(cacheKey); var vmList = all?.Select(x => new SysUnitValueStdDto(x)).ToList(); return vmList; }, CacheHelper.CacheLevel5); -- Gitblit v1.9.3