ningshuxia
2024-04-25 769413fc5ff52240f001fb4bcfcca21728fb275a
WebApi/IStation.Service.Core/6-service/2-product/2-product/Cache/ProductCacheHelper.cs
@@ -1,10 +1,9 @@
using IStation.Service;
using Yw;
using Yw;
namespace IStation.Service
{
    /// <summary>
    /// Product缓存辅助类
    /// Product缓存辅助类
    /// </summary>
    internal class ProductCacheHelper
    {
@@ -17,7 +16,7 @@
        }
        /// <summary>
        /// 设置缓存
        /// 设置缓存
        /// </summary>
        public static void Set(List<Model.Product> list, int Minites = 30, int RandomSeconds = 0)
        {
@@ -26,7 +25,7 @@
        }
        /// <summary>
        /// 查询缓存
        /// 查询缓存
        /// </summary>
        public static List<Model.Product> Get()
        {
@@ -35,7 +34,7 @@
        }
        /// <summary>
        /// 查询设置缓存
        /// 查询设置缓存
        /// </summary>
        public static List<Model.Product> GetSet(Func<List<Model.Product>> func, int Minites = 30, int RandomSeconds = 0)
        {
@@ -44,7 +43,7 @@
        }
        /// <summary>
        /// 移除缓存
        /// 移除缓存
        /// </summary>
        public static void Remove()
        {
@@ -53,7 +52,7 @@
        }
        /// <summary>
        /// 全部移除
        /// 全部移除
        /// </summary>
        public static void RemoveAll()
        {