duheng
2024-10-24 bb5865148234cad04ae31d4de9264f4209a3fa6d
Service/HStation.Service.Organize.Core/05-service/03-LoginUserMain---/Cache/LoginUserMainCacheHelper.cs
@@ -16,7 +16,7 @@
        /// <summary>
        /// 设置缓存
        /// </summary>
        public static void Set(List<Model.LoginUserMain> list, int Minites = 30, int RandomSeconds = 0)
        public static void Set(List<Model.UserLoginAccount> 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.LoginUserMain> Get()
        public static List<Model.UserLoginAccount> Get()
        {
            var cacheKey = GetCacheKey();
            return MemoryCacheHelper.Get<List<Model.LoginUserMain>>(cacheKey);
            return MemoryCacheHelper.Get<List<Model.UserLoginAccount>>(cacheKey);
        }
        /// <summary>
        /// 获取设置缓存
        /// </summary>
        public static List<Model.LoginUserMain> GetSet(Func<List<Model.LoginUserMain>> func, int Minites = 30, int RandomSeconds = 0)
        public static List<Model.UserLoginAccount> GetSet(Func<List<Model.UserLoginAccount>> func, int Minites = 30, int RandomSeconds = 0)
        {
            var cacheKey = GetCacheKey();
            return MemoryCacheHelper.GetSet(cacheKey, func, Minites * 60 + RandomSeconds);