/// <summary> /// 获取指定key的List /// </summary> /// <param name="key"></param> /// <param name="count"></param> /// <returns></returns> public List <T> ListRange <T>(string key, long count = 1000) { List <T> list = new List <T>(); Enumerable.ToList <string>(CsRedisHelper.LRang(key, 0, count)).ForEach(p => { list.Add(ConvertObj <T>(p)); }); return(list); }