duheng
2024-11-17 a2a57963e160a319276c5c8499f16c9809056e4c
Service/HStation.Service.Assets.Core/05-service/01-PumpMain/07-PumpMainAndPartMapping/Cache/PumpMainAndPartMapCacheHelper.cs
ÎļþÃû´Ó Service/HStation.Service.Assets.Core/05-service/01-PumpMain/07-PumpMainAndPartMap/Cache/PumpMainAndPartMapCacheHelper.cs ÐÞ¸Ä
@@ -4,7 +4,7 @@
    /// PumpPart
    /// ç¼“存辅助类
    /// </summary>
    internal class AssetsPumpMainAndPartMapCacheHelper
    internal class AssetsPumpMainAndPartMappingCacheHelper
    {
        private const string _contentKey = "AssetsPumpMainAndPartMapList";
@@ -16,7 +16,7 @@
        /// <summary>
        /// è®¾ç½®ç¼“å­˜
        /// </summary>
        public static void Set(List<Model.AssetsPumpMainAndPartMap> list, int Minites = 30, int RandomSeconds = 0)
        public static void Set(List<Model.AssetsPumpMainAndPartMapping> list, int Minites = 30, int RandomSeconds = 0)
        {
            var cacheKey = GetCacheKey();
            MemoryCacheHelper.Set(cacheKey, list, Minites * 60 + RandomSeconds);
@@ -26,16 +26,16 @@
        /// èŽ·å–ç¼“å­˜
        /// </summary>
        /// <returns></returns>
        public static List<Model.AssetsPumpMainAndPartMap> Get()
        public static List<Model.AssetsPumpMainAndPartMapping> Get()
        {
            var cacheKey = GetCacheKey();
            return MemoryCacheHelper.Get<List<Model.AssetsPumpMainAndPartMap>>(cacheKey);
            return MemoryCacheHelper.Get<List<Model.AssetsPumpMainAndPartMapping>>(cacheKey);
        }
        /// <summary>
        /// èŽ·å–è®¾ç½®ç¼“å­˜
        /// </summary>
        public static List<Model.AssetsPumpMainAndPartMap> GetSet(Func<List<Model.AssetsPumpMainAndPartMap>> func, int Minites = 30, int RandomSeconds = 0)
        public static List<Model.AssetsPumpMainAndPartMapping> GetSet(Func<List<Model.AssetsPumpMainAndPartMapping>> func, int Minites = 30, int RandomSeconds = 0)
        {
            var cacheKey = GetCacheKey();
            return MemoryCacheHelper.GetSet(cacheKey, func, Minites * 60 + RandomSeconds);