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