ServiceStack.Redis.RedisNativeClient.GetRangeByScore C# (CSharp) Method

GetRangeByScore() private method

private GetRangeByScore ( byte commandBytes, string setId, double min, double max, int skip, int take, bool withScores ) : byte[][]
commandBytes byte
setId string
min double
max double
skip int
take int
withScores bool
return byte[][]
        private byte[][] GetRangeByScore(byte[] commandBytes,
            string setId, double min, double max, int? skip, int? take, bool withScores)
        {
            if (setId == null)
                throw new ArgumentNullException("setId");

            var cmdWithArgs = new List<byte[]>
           	{
           		commandBytes, setId.ToUtf8Bytes(), min.ToFastUtf8Bytes(), max.ToFastUtf8Bytes()
           	};

            if (skip.HasValue || take.HasValue)
            {
                cmdWithArgs.Add(Commands.Limit);
                cmdWithArgs.Add(skip.GetValueOrDefault(0).ToUtf8Bytes());
                cmdWithArgs.Add(take.GetValueOrDefault(0).ToUtf8Bytes());
            }

            if (withScores)
            {
                cmdWithArgs.Add(Commands.WithScores);
            }

            return SendExpectMultiData(cmdWithArgs.ToArray());
        }

Same methods

RedisNativeClient::GetRangeByScore ( byte commandBytes, string setId, long min, long max, int skip, int take, bool withScores ) : byte[][]
RedisNativeClient