duheng
2024-11-17 a2a57963e160a319276c5c8499f16c9809056e4c
Service/HStation.Service.Assets.Core/05-service/13-Package/01-PackageMain/Cache/AssetsPackageMainCacheHelper.cs
ÎļþÃû´Ó Service/HStation.Service.Assets.Core/05-service/13-Kit/01-KitMain/Cache/AssetsKitMainCacheHelper.cs ÐÞ¸Ä
@@ -1,10 +1,9 @@
namespace HStation.Service
{
    /// <summary>
    /// AssetsPumpType
    /// ç¼“存辅助类
    /// </summary>
    internal class AssetsKitMainCacheHelper
    internal class AssetsPackageMainCacheHelper
    {
        private const string _contentKey = "EquipmentManageMap";
@@ -16,7 +15,7 @@
        /// <summary>
        /// è®¾ç½®ç¼“å­˜
        /// </summary>
        public static void Set(List<Model.AssetsKitMain> list, int Minites = 30, int RandomSeconds = 0)
        public static void Set(List<Model.AssetsPackageMain> list, int Minites = 30, int RandomSeconds = 0)
        {
            var cacheKey = GetCacheKey();
            MemoryCacheHelper.Set(cacheKey, list, Minites * 60 + RandomSeconds);
@@ -26,16 +25,16 @@
        /// èŽ·å–ç¼“å­˜
        /// </summary>
        /// <returns></returns>
        public static List<Model.AssetsKitMain> Get()
        public static List<Model.AssetsPackageMain> Get()
        {
            var cacheKey = GetCacheKey();
            return MemoryCacheHelper.Get<List<Model.AssetsKitMain>>(cacheKey);
            return MemoryCacheHelper.Get<List<Model.AssetsPackageMain>>(cacheKey);
        }
        /// <summary>
        /// èŽ·å–è®¾ç½®ç¼“å­˜
        /// </summary>
        public static List<Model.AssetsKitMain> GetSet(Func<List<Model.AssetsKitMain>> func, int Minites = 30, int RandomSeconds = 0)
        public static List<Model.AssetsPackageMain> GetSet(Func<List<Model.AssetsPackageMain>> func, int Minites = 30, int RandomSeconds = 0)
        {
            var cacheKey = GetCacheKey();
            return MemoryCacheHelper.GetSet(cacheKey, func, Minites * 60 + RandomSeconds);