public byte[][] ZRangeByLex(string setId, string min, string max, int? skip = null, int? take = null)
{
if (setId == null)
throw new ArgumentNullException("setId");
var cmdWithArgs = new List<byte[]>
{
Commands.ZRangeByLex, setId.ToUtf8Bytes(), min.ToUtf8Bytes(), max.ToUtf8Bytes()
};
if (skip.HasValue || take.HasValue)
{
cmdWithArgs.Add(Commands.Limit);
cmdWithArgs.Add(skip.GetValueOrDefault(0).ToUtf8Bytes());
cmdWithArgs.Add(take.GetValueOrDefault(0).ToUtf8Bytes());
}
return SendExpectMultiData(cmdWithArgs.ToArray());
}