using DS.Module.Core;
using DS.WMS.Core.Code.Entity;
using DS.WMS.Core.Map.Entity;
using DS.WMS.Core.Sys.Method;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sys.Interface
{
///
/// 公共缓存
///
public interface ISysCacheService
{
///
/// 获取缓存数据
///
/// 数据类型
/// 缓存key枚举
/// 缓存系统KEY
/// 返回列表
Task>> GetAllCommonCodeFromCache(SysCacheCategoryEnum cacheCategory, string systemKey);
///
/// 设置缓存
///
/// 被缓存的详情
/// 缓存类型枚举
/// 缓存系统KEY
/// 超期时间(毫米)
///
Task> SetCommonCode(object cacheObj, SysCacheCategoryEnum cacheCategory, string systemKey, int outSecond = 0);
///
/// 清除缓存
///
/// 缓存类型枚举
/// 缓存系统KEY
///
Task RemoveCache(SysCacheCategoryEnum cacheCategory, string systemKey);
}
}