From 0a1bf56909464e938a68c29b26ab88ff51380fad Mon Sep 17 00:00:00 2001
From: Shuxia Ning <NingShuxia0927@outlook.com>
Date: 星期三, 08 一月 2025 13:56:17 +0800
Subject: [PATCH] 能效分析水力图表 装置点显示文字

---
 Service/PBS.Service.Core/05-service/02-facility/FacilityCacheHelper.cs |  115 ++++++++++++++++++++++++++++-----------------------------
 1 files changed, 57 insertions(+), 58 deletions(-)

diff --git a/Service/PBS.Service.Core/05-service/02-facility/FacilityCacheHelper.cs b/Service/PBS.Service.Core/05-service/02-facility/FacilityCacheHelper.cs
index 9ef7e48..4381ac6 100644
--- a/Service/PBS.Service.Core/05-service/02-facility/FacilityCacheHelper.cs
+++ b/Service/PBS.Service.Core/05-service/02-facility/FacilityCacheHelper.cs
@@ -3,72 +3,71 @@
     /// <summary>
     /// 璁炬柦
     ///</summary>   
-    internal class FacilityCacheHelper  
+    internal class FacilityCacheHelper
     {
-         
-		private const string _contentKey = "FacilityList";
 
-		internal static string GetCacheKey()
-		{
-			return CacheHelper.GetCacheKey(_contentKey);
-		}
+        private const string _contentKey = "FacilityList";
 
-		/// <summary>
-		/// 璁剧疆缂撳瓨
-		/// </summary>
-		public static void Set(List<PBS.Model.Facility> list, int Minites = 30, int RandomSeconds = 0)
-		{
-			var cacheKey = GetCacheKey();
-			MemoryCacheHelper.Set(cacheKey, list, Minites * 60 + RandomSeconds);
-		}
+        internal static string GetCacheKey()
+        {
+            return CacheHelper.GetCacheKey(_contentKey);
+        }
 
-		/// <summary>
-		/// 鑾峰彇缂撳瓨
-		/// </summary>
-		/// <returns></returns>
-		public static List<PBS.Model.Facility> Get()
-		{
-			var cacheKey = GetCacheKey();
-			return MemoryCacheHelper.Get<List<PBS.Model.Facility>>(cacheKey);
-		}
+        /// <summary>
+        /// 璁剧疆缂撳瓨
+        /// </summary>
+        public static void Set(List<PBS.Model.Facility> list, int Minites = 30, int RandomSeconds = 0)
+        {
+            var cacheKey = GetCacheKey();
+            MemoryCacheHelper.Set(cacheKey, list, Minites * 60 + RandomSeconds);
+        }
 
-		/// <summary>
-		/// 鑾峰彇璁剧疆缂撳瓨
-		/// </summary>
-		public static List<PBS.Model.Facility> GetSet(Func<List<PBS.Model.Facility>> func, int Minites = 30, int RandomSeconds = 0)
-		{
-			var cacheKey = GetCacheKey();
-			return MemoryCacheHelper.GetSet(cacheKey, func, Minites * 60 + RandomSeconds);
-		}
+        /// <summary>
+        /// 鑾峰彇缂撳瓨
+        /// </summary>
+        /// <returns></returns>
+        public static List<PBS.Model.Facility> Get()
+        {
+            var cacheKey = GetCacheKey();
+            return MemoryCacheHelper.Get<List<PBS.Model.Facility>>(cacheKey);
+        }
 
-		/// <summary>
-		/// 绉婚櫎缂撳瓨
-		/// </summary>
-		public static void Remove()
-		{
-			var cacheKey = GetCacheKey();
-			MemoryCacheHelper.Remove(cacheKey);
-		}
+        /// <summary>
+        /// 鑾峰彇璁剧疆缂撳瓨
+        /// </summary>
+        public static List<PBS.Model.Facility> GetSet(Func<List<PBS.Model.Facility>> func, int Minites = 30, int RandomSeconds = 0)
+        {
+            var cacheKey = GetCacheKey();
+            return MemoryCacheHelper.GetSet(cacheKey, func, Minites * 60 + RandomSeconds);
+        }
 
-		/// <summary>
-		/// 鍙戝竷
-		/// </summary>
-		public static void Publish(string key)
-		{
-			var cacheKey = GetCacheKey();
-			MemoryCacheWipeRelationHelper.Set(key, cacheKey);
-		}
+        /// <summary>
+        /// 绉婚櫎缂撳瓨
+        /// </summary>
+        public static void Remove()
+        {
+            var cacheKey = GetCacheKey();
+            MemoryCacheHelper.Remove(cacheKey);
+        }
 
-		/// <summary>
-		/// 瑙﹀彂
-		/// </summary>
-		public static void Trigger()
-		{
-			var cacheKey = GetCacheKey();
-			MemoryCacheWipeRelationHelper.Trigger(cacheKey);
-		}
+        /// <summary>
+        /// 鍙戝竷
+        /// </summary>
+        public static void Publish(string key)
+        {
+            var cacheKey = GetCacheKey();
+            MemoryCacheWipeRelationHelper.Set(key, cacheKey);
+        }
+
+        /// <summary>
+        /// 瑙﹀彂
+        /// </summary>
+        public static void Trigger()
+        {
+            var cacheKey = GetCacheKey();
+            MemoryCacheWipeRelationHelper.Trigger(cacheKey);
+        }
 
     }
 }
-  
- 
\ No newline at end of file
+

--
Gitblit v1.9.3