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

            return(list);
        }
Exemplo n.º 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);
        }