示例#1
0
        public static List <RefreshEntity> GetRefresh()
        {
            var cache = ServiceTaker.GetService <ICacheClient>();
            var list  = cache.Get <List <RefreshEntity> >("SYS_REFRESH");

            return(list);
        }
示例#2
0
        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);
        }