/// <summary> /// 排序 /// </summary> /// <param name="options"></param> /// <returns></returns> private byte[][] Sort(DME_SortOptions options) { return redisSocket.SendDataCommandExpectMultiBulkReply(null, options.ToCommand() + "\r\n"); }
/// <summary> /// 排序 /// </summary> /// <param name="options"></param> /// <returns></returns> public List<string> SortString(DME_SortOptions options) { byte[][] data = Sort(options); if (data == null || data.Length == 0) { return null; } List<string> returnData = new List<string>(); foreach (byte[] item in data) { returnData.Add(Encoding.UTF8.GetString(item)); } return returnData; }