/// <summary> /// 获取最近5分钟缓存的车量 /// </summary> /// <param name="carNo"></param> /// <returns></returns> public List<string> GetLastMessageOfFiveMinuteCarNo() { List<string> carList = new List<string>(); var unixTimestamp = BasicUtil.ToUnixTime(DateTime.Now); using (var client = this.service.GetClient()) { carList = client.GetRangeFromSortedSetByHighestScore(this.KEY_FAULTBILLINDEX, unixTimestamp - FromTime * 5000000, unixTimestamp); } List<string> result = new List<string>(); foreach (var item in carList) //去掉非Current { if (item.Contains(EVRConst.MasterCatchFlag)) { result.Add(item); } } //carList.Select(x => x.Contains(EVRConst.MasterCatchFlag)).ToList(); return result; }