Shuxia Ning
2024-12-17 24fb6d95e0416ac3c00a93b87359567e45568a89
Service/HStation.Service.Assets.Core/05-service/11-Exchanger/05-ExchangerMainAndPartMapping/Cache/ExchangerMainAndPartMapCacheHelper.cs
@@ -16,7 +16,7 @@
        /// <summary>
        /// 设置缓存
        /// </summary>
        public static void Set(List<Model.AssetsExchangerMainAndPartMap> list, int Minites = 30, int RandomSeconds = 0)
        public static void Set(List<Model.AssetsExchangerMainAndPartMapping> 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.AssetsExchangerMainAndPartMap> Get()
        public static List<Model.AssetsExchangerMainAndPartMapping> Get()
        {
            var cacheKey = GetCacheKey();
            return MemoryCacheHelper.Get<List<Model.AssetsExchangerMainAndPartMap>>(cacheKey);
            return MemoryCacheHelper.Get<List<Model.AssetsExchangerMainAndPartMapping>>(cacheKey);
        }
        /// <summary>
        /// 获取设置缓存
        /// </summary>
        public static List<Model.AssetsExchangerMainAndPartMap> GetSet(Func<List<Model.AssetsExchangerMainAndPartMap>> func, int Minites = 30, int RandomSeconds = 0)
        public static List<Model.AssetsExchangerMainAndPartMapping> GetSet(Func<List<Model.AssetsExchangerMainAndPartMapping>> func, int Minites = 30, int RandomSeconds = 0)
        {
            var cacheKey = GetCacheKey();
            return MemoryCacheHelper.GetSet(cacheKey, func, Minites * 60 + RandomSeconds);