public static List <RefreshEntity> GetRefresh() { var cache = ServiceTaker.GetService <ICacheClient>(); var list = cache.Get <List <RefreshEntity> >("SYS_REFRESH"); return(list); }
public static List <T> Get <T>(string key) { List <T> lst; var cache = ServiceTaker.GetService <ICacheClient>(); var cacheKey = GetEntityCacheKey(key); lst = cache.Get <List <T> >(cacheKey); if (lst == null) { lst = new List <T>(); } return(lst); }