| | |
| | | using IStation.Service; |
| | | using Yw; |
| | | using Yw; |
| | | |
| | | namespace IStation.Service |
| | | { |
| | | /// <summary> |
| | | /// ProductGroup缓存辅助类 |
| | | /// ProductGroup缓存辅助类 |
| | | /// </summary> |
| | | internal class ProductGroupCacheHelper |
| | | { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 设置缓存 |
| | | /// 设置缓存 |
| | | /// </summary> |
| | | public static void Set(List<Model.ProductGroup> list, int Minites = 30, int RandomSeconds = 0) |
| | | { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 查询缓存 |
| | | /// 查询缓存 |
| | | /// </summary> |
| | | public static List<Model.ProductGroup> Get() |
| | | { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 查询设置缓存 |
| | | /// 查询设置缓存 |
| | | /// </summary> |
| | | public static List<Model.ProductGroup> GetSet(Func<List<Model.ProductGroup>> func, int Minites = 30, int RandomSeconds = 0) |
| | | { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 移除缓存 |
| | | /// 移除缓存 |
| | | /// </summary> |
| | | public static void Remove() |
| | | { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 全部移除 |
| | | /// 全部移除 |
| | | /// </summary> |
| | | public static void RemoveAll() |
| | | { |