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枚举
///
Task>> GetAllCommonCodeFromCache(SysCacheKeyEnum cacheKey);
///
/// 设置缓存
///
/// 被缓存的详情
/// 缓存key枚举
/// 超期时间(毫米)
///
Task> SetCommonCode(object cacheObj, SysCacheKeyEnum cacheKey, int outSecond = 0);
///
/// 加载缓存
///
/// 被缓存的详情
/// 缓存key枚举
/// 是否强制刷新缓存
///
Task> LoadCache(object cacheObj, SysCacheKeyEnum cacheKey, bool isReload = false);
}
}