ToString() public method

public ToString ( ) : string
return string
 public static RedisParameter Range(double value, bool inclusive)
 {
     if (inclusive)
     {
         return(new RedisDoubleParameter(value));
     }
     return(new RedisStringParameter("(" + RedisMessage.ToString(value)));
 }
Beispiel #2
0
        protected virtual void ProcessError(RedisResult result, RedisMessage message, bool includeDetail)
        {
            var ex = result.Error();

            if (message != null && includeDetail)
            {
                ex.Data.Add("redis-command", message.ToString());
            }
            source.SafeSetException(ex);
        }
        internal override object ProcessReply(ref RedisResult result, RedisMessage message)
        {
            byte[] expected;
            if (!result.IsError && (expected = message.Expected) != null)
            {
                result = result.IsMatch(expected)
                ? RedisResult.Pass : RedisResult.Error(result.ValueString);
            }

            if (result.IsError && message.MustSucceed)
            {
                throw new RedisException("A critical operation failed: " + message.ToString());
            }
            return message;
        }